From 28c5ca1eff3a7e0454671f4e4c09fe275d517115 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Tue, 19 May 2020 23:41:02 +0200 Subject: [PATCH] Changed remote detection for zsh prompt --- .zsh/lib/prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/lib/prompt.zsh b/.zsh/lib/prompt.zsh index be8c900..4462c7a 100644 --- a/.zsh/lib/prompt.zsh +++ b/.zsh/lib/prompt.zsh @@ -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";