Skip to content

codenameyau/shiny-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

shiny-prompt

Screenshot of terminal

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.