diff options
author | Robby Russell <robby@planetargon.com> | 2012-12-02 12:16:30 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-12-02 12:16:30 -0800 |
commit | d3b867d96739db83be762c607cc6f978429250a4 (patch) | |
tree | 3a10ca2b61177fe7a24c649fb3724533fb371170 /themes/gentoo.zsh-theme | |
parent | ab13d0756fcbf690d9550ec1329ff99da0dc3c75 (diff) | |
parent | badc3eb6ceba2a0cf9a30e056874f089411074ac (diff) | |
download | zsh-d3b867d96739db83be762c607cc6f978429250a4.tar.gz zsh-d3b867d96739db83be762c607cc6f978429250a4.tar.bz2 zsh-d3b867d96739db83be762c607cc6f978429250a4.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/gentoo.zsh-theme')
-rw-r--r-- | themes/gentoo.zsh-theme | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/gentoo.zsh-theme b/themes/gentoo.zsh-theme index cba143d42..ee205d248 100644 --- a/themes/gentoo.zsh-theme +++ b/themes/gentoo.zsh-theme @@ -1,4 +1,8 @@ -PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%#%{$reset_color%} ' +function prompt_char { + if [ $UID -eq 0 ]; then echo "#"; else echo $; fi +} + +PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%_$(prompt_char)%{$reset_color%} ' ZSH_THEME_GIT_PROMPT_PREFIX="(" ZSH_THEME_GIT_PROMPT_SUFFIX=") " |