Created
December 10, 2014 01:12
-
-
Save eli-oat/377a9abaa0220c249bc3 to your computer and use it in GitHub Desktop.
My simple ZSH prompt
This file contains 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
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