mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-03-13 21:33:22 +01:00
Update the prompt to include git and svn info.
This commit is contained in:
parent
f9bbf6047b
commit
c0a54fd89c
3 changed files with 5 additions and 5 deletions
|
@ -20,5 +20,5 @@ ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
|
|||
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[green]%}‹"
|
||||
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
|
||||
|
||||
PROMPT="${user} ${pwd}$ "
|
||||
RPROMPT="${return_code} ${git_branch} \$(ruby_prompt_info)"
|
||||
PROMPT="${user} ${pwd} $ "
|
||||
RPROMPT="${return_code} ${git_branch} \%(ruby_prompt_info)"
|
||||
|
|
|
@ -13,4 +13,4 @@ ZSH_THEME_REPO_NAME_COLOR="%{$fg_bold[red]%}"
|
|||
ZSH_THEME_SVN_PROMPT_PREFIX="svn:("
|
||||
ZSH_THEME_SVN_PROMPT_SUFFIX=")"
|
||||
ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%} ✘ %{$reset_color%}"
|
||||
ZSH_THEME_SVN_PROMPT_CLEAN=" "
|
||||
ZSH_THEME_SVN_PROMPT_CLEAN=" "
|
|
@ -1,5 +1,5 @@
|
|||
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} ) %{$fg[cyan]%}%c%{$reset_color%}"
|
||||
PROMPT+=' $(git_prompt_info)'
|
||||
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{\%fg_bold[red]%}%1{➜%} ) %{\%fg[cyan]%}%c%{$reset_color%}"
|
||||
PROMPT+=' %(git_prompt_info)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
|
|
Loading…
Add table
Reference in a new issue