浏览代码

Fix the rvm gemset right prompt:wq

jais 12 年之前
父节点
当前提交
8d60f9a0d8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      themes/jaischeema.zsh-theme

+ 3 - 2
themes/jaischeema.zsh-theme

@@ -17,6 +17,7 @@ ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}) "
 if which rbenv &> /dev/null; then
   RPROMPT='%{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//")%{$reset_color%}'
 else
-if which rvm-prompt &> /dev/null; then
-  RPROMPT='%{$fg[red]%}$(rvm-prompt)%{$reset_color%}'
+  if which rvm-prompt &> /dev/null; then
+    RPROMPT='%{$fg[red]%}$(rvm-prompt)%{$reset_color%}'
+  fi
 fi