luca.zsh-theme

this commit include my theme (themes/luca.zsh-theme) and a little update of (lib/rvm.zsh)
I added ZSH_THEME_RVM_PROMPT_{PREFIX|SUFFIX} analogous to ZSH_THEME_GIT_PROMPT_{PREFIX|SUFFIX}
This commit is contained in:
Luca Querella 2011-11-26 01:03:07 +01:00
commit 9893a2a302
2 changed files with 19 additions and 1 deletions

18
themes/luca.zsh-theme Normal file
View file

@ -0,0 +1,18 @@
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[green]%}GIT::"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]"
ZSH_THEME_GIT_PROMPT_DIRTY="|✖"
ZSH_THEME_GIT_PROMPT_CLEAN="|✔"
ZSH_THEME_RVM_PROMPT_PREFIX="[%{$fg[red]%}RVM::"
ZSH_THEME_RVM_PROMPT_SUFFIX="%{$reset_color%}]"
# Display exitcode on the right when >0
return_code="%(?..%? ↵)"
PROMPT='
[%T] [%n] [%~] $(rvm_prompt_info) $(git_prompt_info)
→ '
RPROMPT=''