1e9084c3c77b5b9e95c2d75cb08f88078853bd6d
Author Arz Yu <arzyu@live.cn> Committer Robby Russell <robby@planetargon.com> Date 2016-08-15 00:33 UTC
Message muse theme: Remove extra spaces for none git/virtualenv prompt (#5278)
* muse theme: Remove a extra space for none git prompt
* muse theme: Remove a extra space for none virtualenv prompt
Diff 1 diff --git a/themes/muse.zsh-theme b/themes/muse.zsh-theme
2 index 55a375747ed01cd5b2ce5266af8e76fbe7e5e935..c7cd9ee308cbfebd72e61802ca1be6a072abc773 100644
3 --- a/themes/muse.zsh-theme
4 +++ b/themes/muse.zsh-theme
5 @@ -13,11 +13,11 @@ GIT_DIRTY_COLOR=$FG[133]
6 GIT_CLEAN_COLOR=$FG[118]
7 GIT_PROMPT_INFO=$FG[012]
8
9 -PROMPT='%{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%} %{$GIT_PROMPT_INFO%}$(git_prompt_info) $(virtualenv_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} '
10 +PROMPT='%{$PROMPT_SUCCESS_COLOR%}%~%{$reset_color%}%{$GIT_PROMPT_INFO%}$(git_prompt_info)$(virtualenv_prompt_info)%{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}%{$PROMPT_PROMPT%}ᐅ%{$reset_color%} '
11
12 #RPS1="${return_code}"
13
14 -ZSH_THEME_GIT_PROMPT_PREFIX="("
15 +ZSH_THEME_GIT_PROMPT_PREFIX=" ("
16 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})"
17 ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
18 ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
19 @@ -28,3 +28,6 @@ ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
20 ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
21 ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
22 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"
23 +
24 +ZSH_THEME_VIRTUALENV_PREFIX=" ["
25 +ZSH_THEME_VIRTUALENV_SUFFIX="]"