new 'jupp' theme

- added a new theme with some nicer colors, a timestamp prompt on the
        left, return code display, host and directory (based on muse)
This commit is contained in:
Jupp Müller 2011-11-27 18:26:33 +01:00
commit e052383239
2 changed files with 89 additions and 0 deletions

35
themes/jupp.zsh-theme Normal file
View file

@ -0,0 +1,35 @@
#!/usr/bin/env zsh
# this is based on the muse theme, but modified by jupp0r at gmail.com
setopt promptsubst
autoload -U add-zsh-hook
PROMPT_SUCCESS_COLOR=$FG[117]
PROMPT_FAILURE_COLOR=$FG[124]
PROMPT_VCS_INFO_COLOR=$FG[242]
PROMPT_DATE_COLOR=$FG[118]
PROMPT_DIR_COLOR=$FG[142]
PROMPT_DATE_BOUNDARY_COLOR=$FG[117]
PROMPT_PROMPT=$FG[077]
GIT_DIRTY_COLOR=$FG[133]
GIT_CLEAN_COLOR=$FG[118]
GIT_PROMPT_INFO=$FG[012]
PROMPT='%(0?..%{$PROMPT_FAILURE_COLOR%}%?%{$reset_color%} )%{$PROMPT_SUCCESS_COLOR%}%n@%m %{$PROMPT_DIR_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} '
RPROMPT=' %{$PROMPT_DATE_BOUNDARY_COLOR%}<%{$PROMPT_DATE_COLOR%} %* %W %{$PROMPT_DATE_BOUNDARY_COLOR%}>%{$reset_color%} '
#RPS1="${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"