Skip to content

Instantly share code, notes, and snippets.

@rougeth
Last active February 25, 2016 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rougeth/e9178362c9dbfebb5b47 to your computer and use it in GitHub Desktop.
Save rougeth/e9178362c9dbfebb5b47 to your computer and use it in GitHub Desktop.
function prompt_char {
if [ $UID -eq 0 ]; then echo "#"; else echo $; fi
}
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='${ret_status}%{$fg_bold[white]%}%n %{$fg_bold[grey]%}at %{$fg_bold[blue]%}%m %{$fg_bold[grey]%}in %{$fg[green]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
$(prompt_char) '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[grey]%}on %{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}%{$fg[yellow]%} ✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment