shiny-prompt

Super wonderful bash prompt

GPL-2.0 License

Stars
7

shiny-prompt

Prompt features:

  • displays the current directory as title
  • displays the active python virtualenv
  • displays the current branch of a git or mercurial repository
  • displays the timestamp of a command
  • displays the exit code of the previous command $ as color (white=0, red=1)

Installation

Download this file to your home directory. You can pick another prompt in src.

wget -N -O ~/.bash_prompt https://raw.githubusercontent.com/codenameyau/shiny-prompt/master/src/.bash_prompt

Add this line to your .bashrc (Linux) or .bash_profile (Mac)

echo "source ~/.bash_prompt" >> .bashrc

Lastly open a new terminal or source your .bashrc.