diff --git a/themes/damn-mac.zsh-theme b/themes/damn-mac.zsh-theme index b8f9586..8c6c227 100644 --- a/themes/damn-mac.zsh-theme +++ b/themes/damn-mac.zsh-theme @@ -5,11 +5,10 @@ # # Created on: Apr 10, 2012 -nfunction my_git_prompt_info() { +function my_git_prompt_info() { ref=$(git symbolic-ref HEAD 2> /dev/null) || \ ref=$(git rev-parse --short HEAD 2> /dev/null) || return - #echo "$ZSH_THEME_GIT_PROMPT_PREFIX %F{007}$(parse_git_dirty)%F{005}${ref#refs/heads/} %F{007}$ZSH_THEME_GIT_PROMPT_SUFFIX" - #echo "$(git_super_status)" + echo "$ZSH_THEME_GIT_PROMPT_PREFIX %F{007}$(parse_git_dirty)%F{005}${ref#refs/heads/} %F{007}$ZSH_THEME_GIT_PROMPT_SUFFIX" } function get_pwd() { @@ -41,14 +40,16 @@ function spaces() { function user_prompt () { if [ $UID != 0 ]; then - echo "%F{007}%F{002}> " + echo "%F{007}$USER%F{002}> " else - echo "%F{001}# " + echo "%F{001}$USER# " fi } -PROMPT='%F{005}%~%F{008} $(git_super_status)$(user_prompt)%f' +PROMPT=' + %F{005}%~%F{008}$(spaces) $(my_git_prompt_info) + $(user_prompt)%f' # git settings ZSH_THEME_GIT_PROMPT_PREFIX="%F{002}["