summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2020-09-10 17:39:13 +0200
committerAlan Pearce2020-09-10 17:39:13 +0200
commit7266a80ad23a6f1ac0750a84e372fba954b10b53 (patch)
tree4dc23df5fae2e4f828d5aad0cda3e11be0f192e9 /user/zsh
parentcb1bc18be03a91e47e4ace712db4f178308f652b (diff)
downloadnixfiles-7266a80ad23a6f1ac0750a84e372fba954b10b53.tar.lz
nixfiles-7266a80ad23a6f1ac0750a84e372fba954b10b53.tar.zst
nixfiles-7266a80ad23a6f1ac0750a84e372fba954b10b53.zip
zsh: show/hide user and host depending on SSH status
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index 67eee653..c90fa933 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -75,7 +75,7 @@ then
 %# '
   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