From c79dec384b8512830bc9da8d0739e0de717897c3 Mon Sep 17 00:00:00 2001 From: Steven Harman Date: Wed, 18 Jan 2012 11:33:00 -0500 Subject: [PATCH] oops, wrong prompt_char. all better now. --- themes/smh.zsh-theme | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/smh.zsh-theme b/themes/smh.zsh-theme index e02dc0ceb..7140aca70 100644 --- a/themes/smh.zsh-theme +++ b/themes/smh.zsh-theme @@ -8,15 +8,15 @@ function smh_rvm_info { echo "%{$fg[magenta]%}$(rvm_prompt_info)%{$reset_color%}" } -function root_warning { - if [ $UID -eq 0 ]; then echo "%{$fg[red]%}☠%{$reset_color%} "; fi +function prompt_char { + if [ $UID -eq 0 ]; then echo "%{$fg[red]%}☠%{$reset_color%}"; else echo $; fi } # Save a smiley to a local variable if the last command exited with success. local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})" PROMPT=' -$(root_warning)%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%} [$(smh_rvm_info)$(git_prompt_info)] +%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%} [$(smh_rvm_info)$(git_prompt_info)] %_${smiley} $(prompt_char) ' RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}'