summaryrefslogtreecommitdiff
path: root/themes/robbyrussell.zsh-theme
diff options
context:
space:
mode:
authorHanjiang Yu <42531996+de1acr0ix@users.noreply.github.com>2019-09-08 21:07:33 +0800
committerMarc Cornellà <marc.cornella@live.com>2019-09-08 15:07:33 +0200
commitc44569f06eef2a3b4a1666686e7040c33e59e49c (patch)
tree257462ba436e9de93530f9995b00920c3b0db266 /themes/robbyrussell.zsh-theme
parent9c3e3ae5e451637873ae74da1732e98f3df3784c (diff)
downloadzsh-c44569f06eef2a3b4a1666686e7040c33e59e49c.tar.gz
zsh-c44569f06eef2a3b4a1666686e7040c33e59e49c.tar.bz2
zsh-c44569f06eef2a3b4a1666686e7040c33e59e49c.zip
robbyrussell: remove local variable (#8131)
Now it can be sourced in a function, like zplug.
Diffstat (limited to 'themes/robbyrussell.zsh-theme')
-rw-r--r--themes/robbyrussell.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme
index f9eca6a87..4df8433e3 100644
--- a/themes/robbyrussell.zsh-theme
+++ b/themes/robbyrussell.zsh-theme
@@ -1,5 +1,5 @@
-local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
-PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
+PROMPT="%(?:%{$fg_bold[green]%}➜:%{$fg_bold[red]%}➜)"
+PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "