mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
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}
18 lines
No EOL
475 B
Bash
18 lines
No EOL
475 B
Bash
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='' |