From d481042d2d8c9e22065b6acf197cd6ce485211c0 Mon Sep 17 00:00:00 2001 From: Smasty Date: Sun, 4 Mar 2012 12:48:16 +0100 Subject: [PATCH] Smasty theme --- themes/smasty.zsh-theme | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 themes/smasty.zsh-theme diff --git a/themes/smasty.zsh-theme b/themes/smasty.zsh-theme new file mode 100644 index 000000000..bda5b56e9 --- /dev/null +++ b/themes/smasty.zsh-theme @@ -0,0 +1,11 @@ +if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="white"; fi + +local return_code="%(?..%{$fg[red]%}[#%?]%{$reset_color%})" + +PS1='%{$reset_color%}%6~$(git_prompt_info)%{${fg[$CARETCOLOR]}%}${return_code}$%{${reset_color}%} ' + +RPS1='[%*]' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}@" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}‡ "