Changed remote detection for zsh prompt

This commit is contained in:
Christian Baer 2020-05-19 23:41:02 +02:00
parent b1023858de
commit 28c5ca1eff

View File

@ -12,7 +12,7 @@ fi
PROMPT+='%F{yellow}%~%f '
# Change green arrows (⇣⇡) if connection is via ssh
if [[ "${SSH_TTY}" ]]; then
if [[ "${SSH_CLIENT}" ]]; then
PROMPT+="%F{green}⇣⇡%f %F{white}〉%f";
else
PROMPT+="%F{white}〉%f";