From 302a04fbd46f3aa4e9a5389a5940e4245357ee1f Mon Sep 17 00:00:00 2001 From: Michael Yanovich Date: Mon, 27 Feb 2012 08:38:09 -0500 Subject: [PATCH] added my theme (modified from obraun) --- themes/yano.zsh-theme | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 themes/yano.zsh-theme diff --git a/themes/yano.zsh-theme b/themes/yano.zsh-theme new file mode 100644 index 000000000..b5ce14a88 --- /dev/null +++ b/themes/yano.zsh-theme @@ -0,0 +1,11 @@ +if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi + +local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +PROMPT='%{$fg[green]%}%B[%*]%{$reset_color%} %{$fg_bold[cyan]%}%B%n %{${fg_bold[blue]}%}::%{$reset_color%} %{$fg[yellow]%}%B%m%{$reset_color%} %{$fg_no_bold[magenta]%} ➜ %{$reset_color%} %{${fg[green]}%}%B%3~ $(git_prompt_info)%{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} ' + +RPS1="${return_code}" + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹" +ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" +