From 3499f41d23c9db5ca9935d56965cbc48256dd429 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 1 Oct 2012 02:02:01 +0800 Subject: [PATCH] add jeffrey4l zsh theme --- themes/jeffrey4l.zsh-theme | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/jeffrey4l.zsh-theme diff --git a/themes/jeffrey4l.zsh-theme b/themes/jeffrey4l.zsh-theme new file mode 100644 index 000000000..2d70f670f --- /dev/null +++ b/themes/jeffrey4l.zsh-theme @@ -0,0 +1,12 @@ +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="magenta"; fi + +local ret_status="%(?..%{$fg_bold[yellow]$bg_bold[red]%}{%?}%{$reset_color%})" + +PROMPT='%{${ret_status}$fg_bold[$NCOLOR]%n$reset_color@$fg_bold[yellow]%m:$fg_bold[blue]%~%} +%{$fg_bold[yellow]%}➤ %{$reset_color%}' +RPROMPT='%{$fg[yellow]%}%p $(git_prompt_info)%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX="[git:" +ZSH_THEME_GIT_PROMPT_SUFFIX="]" +ZSH_THEME_GIT_PROMPT_DIRTY="*" +ZSH_THEME_GIT_PROMPT_CLEAN=""