diff --git a/lib/scm.zsh b/lib/scm.zsh index accea9b53..fbc95118d 100644 --- a/lib/scm.zsh +++ b/lib/scm.zsh @@ -52,7 +52,7 @@ function scm_prompt_char() { } -function scm_prompt_info_for_git() { git_prompt_info } +function scm_prompt_info_for_git() { echo "$(git_prompt_info)$(git_prompt_status)" } function scm_prompt_info_for_hg() {} function scm_prompt_info_for_svn() {} diff --git a/themes/pixelplastic.zsh-theme b/themes/pixelplastic.zsh-theme new file mode 100644 index 000000000..6c48a280f --- /dev/null +++ b/themes/pixelplastic.zsh-theme @@ -0,0 +1,13 @@ +# see http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html for color codes +PROMPT_PREFIX="$(xterm_color 243 '%n')$(xterm_color 240 '@')$(xterm_color 238 '%m')" + +PROMPT='$PROMPT_PREFIX $(xterm_color 76 "${PWD/#$HOME/~}") $SCM_PROMPT_INFO +$(scm_prompt_char)> ' + +RPROMPT='$RPROMPT_SUFFIX' + +ZSH_THEME_GIT_PROMPT_PREFIX="on $(xterm_color_open 220)" +ZSH_THEME_GIT_PROMPT_SUFFIX="$(xterm_color_reset)" +ZSH_THEME_GIT_PROMPT_DIRTY=" $(xterm_color 196 '(!)')" +ZSH_THEME_GIT_PROMPT_UNTRACKED=" $(xterm_color 33 '(+)')" +ZSH_THEME_GIT_PROMPT_CLEAN=""