Skip to content

Instantly share code, notes, and snippets.

@RichardJordan
Created February 5, 2013 22:37
Show Gist options
  • Save RichardJordan/4718366 to your computer and use it in GitHub Desktop.
Save RichardJordan/4718366 to your computer and use it in GitHub Desktop.
My prompt ZSH-theme
PROMPT=$'%B'
PROMPT+=$'┌─['
PROMPT+=$'%b'
PROMPT+=$'%{\e[0%(?.36.31)m%}'
PROMPT+=$' rvm: $(rvm_prompt_info) '
PROMPT+=$'%{\e[0m%}'
PROMPT+=$'%B'
PROMPT+=$']'
PROMPT+=$'%b'
PROMPT+=$'-'
PROMPT+=$'%B'
PROMPT+=$'['
PROMPT+=$'%b'
PROMPT+=$'%{\e[0%(?.36.31)m%}'
PROMPT+=$' %~ '
PROMPT+=$'%{\e[0m%}'
PROMPT+=$'%B'
PROMPT+=$']'
PROMPT+=$'%b%{\e[0m%}'
PROMPT+=$'-'
PROMPT+=$'%B'
PROMPT+=$'['
PROMPT+=$'$(git_prompt_info)'
PROMPT+=$'%b'
PROMPT+=$'%{\e[0m%}'
PROMPT+=$'%B'
PROMPT+=$']
'
PROMPT+=$'%B'
PROMPT+=$'└─'
PROMPT+=$'%B'
PROMPT+=$'['
PROMPT+=$'%b%{\e[0;%(?.32.35)m%}' # red if last command failed
PROMPT+=$' %D{%a %D %I:%M} '
PROMPT+=$'%{\e[0m%}'
PROMPT+=$'%B'
PROMPT+=$']>'
PROMPT+=$'%b'
PROMPT+=$' '
PS2=$' \e[0;34m%}%B └─> %{\e[0m%}%b '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment