Last active
December 20, 2015 17:49
-
-
Save leozc/6171821 to your computer and use it in GitHub Desktop.
Cool bash Prompt
e.g.
'''
(leozc@mactal)-(jobs:0)-(~)-(LE:0)-(23:59:48)
-> '''
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
#you need git bash completion package for using __git_ps1 | |
export PS1='\n\[\e[32;1m\](\[\e[37;1m\]\u@\h\[\e[32;1m\])-(\[\e[37;1m\]jobs:\j\[\e[32;1m\])-(\[\e[0;32m\]\w)\[\e[34;1m\]-(LE:$?)-\[\e[37;1m\](\t)-$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")\n->\[\e[0m\] ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment