Skip to content

Commit

Permalink
Put the directories on the right hand side
Browse files Browse the repository at this point in the history
  • Loading branch information
gsamokovarov committed Mar 6, 2013
1 parent 91266d4 commit e031738
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions smiley.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ zstyle ':vcs_info:*' enable git
add-zsh-hook precmd prompt_vcs

prompt_vcs () {
vcs_info
vcs_info

if [ "${vcs_info_msg_0_}" != "" ]; then
vcs_info_msg_0_=" ${vcs_info_msg_0_}"
fi
if [ "${vcs_info_msg_0_}" != "" ]; then
vcs_info_msg_0_=" ${vcs_info_msg_0_}"
fi
}

function {
if [[ -n "$SSH_CLIENT" ]]; then
PROMPT_HOST=" ($HOST)"
else
PROMPT_HOST=''
fi
if [[ -n "$SSH_CLIENT" ]]; then
PROMPT_HOST="($HOST)"
else
PROMPT_HOST=''
fi
}

local ret_status="%(?:%{$fg_bold[green]%}☺ :%{$fg_bold[red]%}☹ )"

PROMPT='${ret_status}%{$fg[blue]%}${PROMPT_HOST}%{$fg_bold[green]%}%p %{$fg_bold[yellow]%}%2~${vcs_info_msg_0_}%{$reset_color%} '
PROMPT='${ret_status}%{$fg[blue]%} ${PROMPT_HOST}%{$fg_bold[green]%}%p%{$reset_color%}'
RPROMPT='%{$fg_bold[yellow]%}%2~${vcs_info_msg_0_}%{$reset_color%}'

# vim: set ft=zsh ts=4 sw=4 et:

0 comments on commit e031738

Please sign in to comment.