From 302a04fbd46f3aa4e9a5389a5940e4245357ee1f Mon Sep 17 00:00:00 2001 From: Michael Yanovich Date: Mon, 27 Feb 2012 08:38:09 -0500 Subject: [PATCH 1/2] 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%}" + From 225324dbedf9a885719adf76ef90682eac3730c1 Mon Sep 17 00:00:00 2001 From: Michael Yanovich Date: Mon, 25 Feb 2013 11:29:26 -0500 Subject: [PATCH 2/2] updated my prompt --- themes/yano.zsh-theme | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/themes/yano.zsh-theme b/themes/yano.zsh-theme index b5ce14a88..5c989589b 100644 --- a/themes/yano.zsh-theme +++ b/themes/yano.zsh-theme @@ -1,11 +1,6 @@ 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}" +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}%} ' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹" ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" -