diff options
author | aioute Gao <aioutecism@gmail.com> | 2015-11-02 16:12:38 +0900 |
---|---|---|
committer | aioute Gao <aioutecism@gmail.com> | 2015-11-02 16:12:38 +0900 |
commit | e66afc031833590d6077c029596f251ed247158a (patch) | |
tree | 1e70b0cd84af0afa89cf3bba5768e3009fdfa85c /themes | |
parent | e44aa50301cbdb9c713193263e6c0c5a9a5798c0 (diff) | |
download | zsh-e66afc031833590d6077c029596f251ed247158a.tar.gz zsh-e66afc031833590d6077c029596f251ed247158a.tar.bz2 zsh-e66afc031833590d6077c029596f251ed247158a.zip |
Avoid using "PREFIX" that cause nvm to complain about.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/sunrise.zsh-theme | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/sunrise.zsh-theme b/themes/sunrise.zsh-theme index 28befd01b..9b9259a2d 100644 --- a/themes/sunrise.zsh-theme +++ b/themes/sunrise.zsh-theme @@ -11,9 +11,9 @@ B=$fg_no_bold[blue] RESET=$reset_color if [ "$USER" = "root" ]; then - PROMPTCOLOR="%{$R%}" PREFIX="-!-"; + PROMPTCOLOR="%{$R%}" PROMPTPREFIX="-!-"; else - PROMPTCOLOR="" PREFIX="---"; + PROMPTCOLOR="" PROMPTPREFIX="---"; fi local return_code="%(?..%{$R%}%? ↵%{$RESET%})" @@ -67,7 +67,7 @@ function custom_git_prompt() { } # %B sets bold text -PROMPT='%B$PREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} ' +PROMPT='%B$PROMPTPREFIX %2~ $(custom_git_prompt)%{$M%}%B»%b%{$RESET%} ' RPS1="${return_code}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$Y%}‹" |