Skip to content

Commit

Permalink
zsh: fix "SSH_TTY: parameter not set" in $RPROMPT
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Dec 1, 2015
1 parent d58fb23 commit 7204686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zsh/config/prompt.zsh
Expand Up @@ -8,7 +8,7 @@ PROMPT='%(?..%B%F{red}exit %?%f%b'$'\n'')'\
'%(!.%F{red}.%F{green})%~%f'\
'%(!.#.>) '

RPROMPT='$(test -n "$SSH_TTY" && echo "%F{cyan}#%n@%m%f")'
RPROMPT='${SSH_TTY:+%F{cyan\}#%n@%m%f}'

# VCS integration for command prompt using vcs_info
# http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Misc/vcs_info-examples
Expand Down

0 comments on commit 7204686

Please sign in to comment.