Last active
September 28, 2015 04:07
-
-
Save numberwhun/1381693 to your computer and use it in GitHub Desktop.
My current ps1 prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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