Skip to content

Instantly share code, notes, and snippets.

@eli-oat
Created December 10, 2014 01:12
Show Gist options
  • Save eli-oat/377a9abaa0220c249bc3 to your computer and use it in GitHub Desktop.
Save eli-oat/377a9abaa0220c249bc3 to your computer and use it in GitHub Desktop.
My simple ZSH prompt
ZSH_THEME_GIT_PROMPT_PREFIX="🍍 (%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}☁︎%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) %{$fg[blue]%}☂%{$reset_color%} "
ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
vcs_status() {
if [[ ( $(whence in_svn) != "" ) && ( $(in_svn) == 1 ) ]]; then
svn_prompt_info
else
git_prompt_info
fi
}
PROMPT='%2~ $(vcs_status)෴ %b '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment