diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-10-07 22:57:16 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-10-07 23:01:25 +0200 |
commit | 3a6fa9149b7a3db89d22f40ae371ad636f5ed527 (patch) | |
tree | dff5d81b485b35e5e53a51f8615832016a5b393a /themes/candy-kingdom.zsh-theme | |
parent | ab9d92f66594f1eb20fbd3b067d4d4640cf0da1f (diff) | |
download | zsh-3a6fa9149b7a3db89d22f40ae371ad636f5ed527.tar.gz zsh-3a6fa9149b7a3db89d22f40ae371ad636f5ed527.tar.bz2 zsh-3a6fa9149b7a3db89d22f40ae371ad636f5ed527.zip |
Fix tilde substitution in theme prompts
These themes used an adhoc substitution of $HOME for tilde
in $PWD, but it's better to use '%~' and is less error prone.
See #7160
Diffstat (limited to 'themes/candy-kingdom.zsh-theme')
-rw-r--r-- | themes/candy-kingdom.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/candy-kingdom.zsh-theme b/themes/candy-kingdom.zsh-theme index 9d2103926..30ce785c0 100644 --- a/themes/candy-kingdom.zsh-theme +++ b/themes/candy-kingdom.zsh-theme @@ -17,7 +17,7 @@ function box_name { } PROMPT=' -%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(git_prompt_info) +%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}%~%{$reset_color%}$(hg_prompt_info)$(git_prompt_info) %(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ ' ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[magenta]%}branch: " |