Created
September 24, 2016 22:50
-
-
Save paulmars/5ca8320244f8dbe6b966c32c65a75cc7 to your computer and use it in GitHub Desktop.
Zsh prompt
This file contains hidden or 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
PROMPT='%{$fg_bold[green]%}%p%{$fg[green]%}%~ %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}' | |
RPROMPT='%{$fg[$NCOLOR]%}%p %{$reset_color%}' | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}%{$fg[yellow]%}⚡%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment