Customize your bash prompt

Hello all,

I have been busy writing this bash program that will allow users to customize their bash prompt. I have uploaded it on github.

bash-prompt

Here’s how you can get it and use it:

  • (Optional) Back up your ~/.bashrc file

      cp ~/.bashrc ~/.bashrc.orig

  • Clone the repository

      git clone https://github.com/sug4ndh/bash-prompt-customizer-cli.git

  • Go inside the ‘bash-prompt-customizer-cli’ directory and execute the ‘bash-prompt-customizer’ file inside the ‘src’ directory.

E.g. If you have cloned it inside your home directory, this command can be used

      ~/bash-prompt-customizer-cli/src/bash-prompt-customizer

  • Finally, after you have saved the configuration, if you are in a terminal then close the terminal and reopen it. However, if you are in tty, logout and log back in and you will have your new prompt.

Alternatively, you can download the zip file from here. Extract it and then execute the ‘bash-prompt-customizer’ file inside the ‘src’ directory.

E.g. If you have downloaded the zip file inside the ~/Downloads directory then run this command

~/Downloads/bash-prompt-customizer-cli-master/src/bash-prompt-customizer

If you have any problems or suggestion, feel free to leave a comment here.

~Later~

Sugandh

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s