浏览代码

fix root mode not working in bureau

Clemens Werther 11 年之前
父节点
当前提交
999bd355f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/bureau.zsh-theme

+ 1 - 1
themes/bureau.zsh-theme

@@ -70,7 +70,7 @@ bureau_git_prompt () {
 
 
 _PATH="%{$fg_bold[white]%}%~%{$reset_color%}"
 _PATH="%{$fg_bold[white]%}%~%{$reset_color%}"
 
 
-if [[ "%#" == "#" ]]; then
+if [[ $EUID -eq 0 ]]; then
   _USERNAME="%{$fg_bold[red]%}%n"
   _USERNAME="%{$fg_bold[red]%}%n"
   _LIBERTY="%{$fg[red]%}#"
   _LIBERTY="%{$fg[red]%}#"
 else
 else