Skip to content

Instantly share code, notes, and snippets.

@mezzode
Last active August 12, 2016 09:44
Show Gist options
  • Save mezzode/b16af626fe22c0a34939b3e472bcbf58 to your computer and use it in GitHub Desktop.
Save mezzode/b16af626fe22c0a34939b3e472bcbf58 to your computer and use it in GitHub Desktop.
export PS1="\[\033[00;34m\]{ \[\033[01;34m\]\W \[\033[00;34m\]}\[\033[01;32m\] \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" ) \[\033[01;31m\]» \[\033[00m\]"
export PS1="\[\033[00;34m\]{ \[\033[01;34m\]\W \[\033[00;34m\]}\[\033[01;32m\] \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )\n\[\033[01;31m\]\$ \[\033[00m\]"
export PS1="\[\033[00m\]\u@\h { \w } \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )\n\$ "
export PS1="\[\033[38;5;227m\]\u@\h { \w } \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )\n\[\033[00m\]\$ "
export PS1="\[\033[38;5;227m\]\u@\h \[\033[38;5;14m\]{ \w } \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )\n\[\033[00m\]\$ "
export PS1="\[\033[38;5;227m\]\u@\h \[\033[38;5;14m\]{ \w }\[\033[01;32m\] \$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo "" )\n\[\033[00m\]\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment