Updated gentoo-advanced.zsh-theme to include root prompt.

This commit is contained in:
Sergio Conde Gómez 2012-02-06 23:14:53 +01:00
commit 81cd933c8e

View file

@ -2,7 +2,7 @@
# FILE: gentoo-advanced.zsh-theme # FILE: gentoo-advanced.zsh-theme
# DESCRIPTION: Gentoo's bashrc clone theme for oh-my-zsh. # DESCRIPTION: Gentoo's bashrc clone theme for oh-my-zsh.
# AUTHOR: Sergio Conde Gómez (skgsergio@gmail.com) # AUTHOR: Sergio Conde Gómez (skgsergio@gmail.com)
# VERSION: 1.0.0 # VERSION: 1.1
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Return Code # Return Code
@ -32,5 +32,9 @@ ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" %{$fg[white]%}[%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$fg[white]%}]" ZSH_THEME_GIT_PROMPT_SHA_AFTER="%{$fg[white]%}]"
# Prompt format # Prompt format
if [[ $UID -eq 0 ]]; then
PROMPT='%{$fg_bold[red]%}%m%{$fg[white]%} %{$fg_bold[blue]%}%~%u%{$reset_color%} %{$fg_bold[blue]%}#%{$reset_color%} '
else
PROMPT='%{$fg_bold[green]%}%n@%m%{$fg[white]%} %{$fg_bold[blue]%}%~%u%{$reset_color%} %{$fg_bold[blue]%}$%{$reset_color%} ' PROMPT='%{$fg_bold[green]%}%n@%m%{$fg[white]%} %{$fg_bold[blue]%}%~%u%{$reset_color%} %{$fg_bold[blue]%}$%{$reset_color%} '
fi
RPROMPT='${return_code}%{$fg_bold[green]%}$(current_branch)$(parse_git_dirty)$(git_prompt_ahead)$(git_prompt_short_sha)$(git_prompt_status)%{$reset_color%}' RPROMPT='${return_code}%{$fg_bold[green]%}$(current_branch)$(parse_git_dirty)$(git_prompt_ahead)$(git_prompt_short_sha)$(git_prompt_status)%{$reset_color%}'