浏览代码

improvements to the 'clean' theme

Evandro Myller 14 年之前
父节点
当前提交
9658449450
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      themes/clean.zsh-theme

+ 3 - 1
themes/clean.zsh-theme

@@ -1,4 +1,6 @@
-PROMPT='%n:%{$fg[blue]%}%B%c%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
+if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi
+
+PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
 RPROMPT='[%*]'
 
 # git theming