Skip to content

Instantly share code, notes, and snippets.

@numberwhun
Last active September 28, 2015 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numberwhun/1381693 to your computer and use it in GitHub Desktop.
Save numberwhun/1381693 to your computer and use it in GitHub Desktop.
My current ps1 prompt
PS1="\n\[\033[32;1m\]It's \t\[\033[33;1m\] Currently browsing \[\033[1;36m\]\w \[\033[33;1m\]directory\n\[\033[34;1m\]\ `if [ \$? = 0 ]; then echo \[\e[37m\]Last Command Was Successfully Executed \[\e[32m\]^_^\[\e[0m\]; else echo \[\e[37m\ ]Smeggin Hell exit! Last Command Was Unknown \[\e[32m\]O_O\[\e[0m\]; fi\` \n\[\033[31m\]What is thy bidding, my master? \n\n\[\033[34;1m\]"
The above seems to work on Ubuntu. On CentOS I use the following subset of the above:
PS1="\n\[\033[32;1m\]It's \t\[\033[34;1m\] Current Directory: \[\033[1;36m\]\w \[\033[33;1m\] \n\[\033[31m\]What is thy bidding, my master? \n\[\033[36;1m\]> "
This produces the following output:
It's 08:32:32 Current Directory: ~
What is thy bidding, my master?
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment