From aa44724547ad1074c0ea23098d604369aa0a843c Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Tue, 29 Nov 2011 20:00:57 +0100 Subject: [PATCH] added Dominik-Lieblers-MacBook-Pro.local and some more fancy pipes in the prompt --- themes/domnikl.zsh-theme | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/domnikl.zsh-theme b/themes/domnikl.zsh-theme index 17a26e91b..f090a8315 100644 --- a/themes/domnikl.zsh-theme +++ b/themes/domnikl.zsh-theme @@ -6,13 +6,15 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}⚡%{$reset_color%}" ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}" -# am I root? show me! +# are you root? show me! IAM="" if [ "$UID" = "0" ]; then IAM="%{$fg[red]%}root|%{$reset_color%}" fi -PROMPT='$IAM%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} ' +SEPARATOR="%{$fg[red]%}|%{$fg[reset_color]%}" + +PROMPT='%{$fg[yellow]%}$HOST$SEPARATOR$IAM%{$fg[cyan]%}%1~%{$reset_color%}$SEPARATOR$(git_prompt_info)%{$fg[cyan]%}%{$reset_color%} ' # ls colors, made with http://geoff.greer.fm/lscolors/ export LSCOLORS='Gxdxhxhxbxegedabagacad'