all repos — nixfiles @ 7266a80ad23a6f1ac0750a84e372fba954b10b53

System and user configuration, managed by nix and home-manager

zsh: show/hide user and host depending on SSH status
Alan Pearce alan@alanpearce.eu
Thu, 10 Sep 2020 17:39:13 +0200
commit

7266a80ad23a6f1ac0750a84e372fba954b10b53

parent

cb1bc18be03a91e47e4ace712db4f178308f652b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M user/zsh/zshrcuser/zsh/zshrc
@@ -75,7 +75,7 @@ PROMPT='%B%F{green}%n %F{blue}%~%b%f %# '
   unsetopt zle
 else
-  AGKOZAK_USER_HOST_DISPLAY=0
+  AGKOZAK_USER_HOST_DISPLAY=${+SSH_CLIENT}
   AGKOZAK_SHOW_STASH=0
   AGKOZAK_SHOW_VIRTUALENV=0
   AGKOZAK_PROMPT_DIRTRIM=0