From 6d5e799a8a2d31e0105733ebb436792475638df6 Mon Sep 17 00:00:00 2001 From: Ivan Giacomelli Date: Thu, 1 Sep 2011 13:30:06 +0100 Subject: [PATCH 1/2] Added 'truemilk' theme. --- themes/truemilk.zsh-theme | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 themes/truemilk.zsh-theme diff --git a/themes/truemilk.zsh-theme b/themes/truemilk.zsh-theme new file mode 100644 index 000000000..4e194680f --- /dev/null +++ b/themes/truemilk.zsh-theme @@ -0,0 +1,15 @@ +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi + +local return_code="%(?..%{$fg[red]%}<%?>%{$reset_color%})" + +PROMPT='%{$terminfo[bold]$fg[$NCOLOR]%}%n%{$reset_color%} %{$terminfo[bold]$fg[blue]%}%~%{$reset_color%} $ ' +RPROMPT='${return_code} %{$fg[yellow]%}$(git_prompt_info)%{$reset_color%} <$(~/.rvm/bin/rvm-prompt i v g)>' + +ZSH_THEME_GIT_PROMPT_PREFIX=" Date: Thu, 1 Sep 2011 13:37:50 +0100 Subject: [PATCH 2/2] Small changes to theme file. --- themes/truemilk.zsh-theme | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/truemilk.zsh-theme b/themes/truemilk.zsh-theme index 4e194680f..405128ab3 100644 --- a/themes/truemilk.zsh-theme +++ b/themes/truemilk.zsh-theme @@ -1,4 +1,8 @@ -if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +if [ $UID -eq 0 ]; + then NCOLOR="red"; +else + NCOLOR="green"; +fi local return_code="%(?..%{$fg[red]%}<%?>%{$reset_color%})" @@ -9,7 +13,3 @@ ZSH_THEME_GIT_PROMPT_PREFIX="