Skip to content

Instantly share code, notes, and snippets.

@despo
Created February 20, 2011 13:43
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 despo/835974 to your computer and use it in GitHub Desktop.
Save despo/835974 to your computer and use it in GitHub Desktop.
terminal prompt
local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
PROMPT='%{$fg[blue]%}[%{$reset_color%}${smiley}%{$fg[blue]%}]%{$reset_color%} %{$fg_bold[green]%}%p%{$fg[cyan]%}%{$fg_bold[yellow]%}%{$fg_bold[yellow]%} % %{$fg_bold[yellow]%}➜ %{$reset_color%} '
# git
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} %{$fg_no_bold[yellow]%}%B"
ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%} %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}✈"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}✭"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✗"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}➦"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}✂"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%}✱"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment