Update the prompt to include git and svn info.

This commit is contained in:
Ryan Raushan 2024-02-14 09:58:32 +05:30
parent f9bbf6047b
commit c0a54fd89c
3 changed files with 5 additions and 5 deletions

View file

@ -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)"

View file

@ -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=" "

View file

@ -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%} "