Skip to content

Instantly share code, notes, and snippets.

@leozc
Last active December 20, 2015 17:49
Show Gist options
  • Save leozc/6171821 to your computer and use it in GitHub Desktop.
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) -> '''
#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