~hokiegeek/dotfiles

49e74e69bc6f73ad5a414963dc67f0dabbbfa83f — HokieGeek 10 months ago e30a11b
Going with magenta for the ssh indicator
1 files changed, 1 insertions(+), 7 deletions(-)

M shell-plugins/prompt.zsh
M shell-plugins/prompt.zsh => shell-plugins/prompt.zsh +1 -7
@@ 71,13 71,8 @@ prompt_host() {
    [ -n "$SSH_CLIENT" ] && echo -n "%{$fg[green]%}@%m%{$reset_color%} "
}

prompt_gotmail() {
    # U+2709
    echo -n "✉"
}

prompt_ssh() {
    [ ! -z ${SSH_AGENT_PID+x} ] && echo -n "%{$fg[cyan]%}!%{$reset_color%}"
    [ ! -z ${SSH_AGENT_PID+x} ] && echo -n "%{$fg[magenta]%}!%{$reset_color%}"
}

autoload -U promptinit && promptinit


@@ 89,4 84,3 @@ local last_ret="%(?, ,%{$fg[red]%}•%{$reset_color%})"
# U+256D - ╭ ; U+2570 - ╰  ; U+2574 - ╴
PROMPT='%F{234}╭%f${last_ret}$(prompt_ssh)$(prompt_host)$(prompt_pwd)$(prompt_repoInfo)
%F{234}╰╴%f$(prompt_jobs)'
# RPROMPT="$(prompt_gotmail)"