diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-12-22 17:49:53 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-12-22 17:49:53 +0000 |
commit | 048c2a1a029048ee3ccd03a4958445d41611a890 (patch) | |
tree | 0a43332ce0a3ada8fe40c12a21b641dfedff6c16 | |
parent | df98731291eecb07aa52323ff11d9f0749905c86 (diff) | |
download | nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar.gz nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar.bz2 nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar.lz nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar.xz nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.tar.zst nixlib-048c2a1a029048ee3ccd03a4958445d41611a890.zip |
modules/zsh: include hostname in title when in ssh
-rw-r--r-- | modules/shell/zsh/zshrc.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index b8343e938658..126e0c8692c2 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -206,7 +206,7 @@ fi preexec() { show_exit=1 - set_title "$TTY: $2" + set_title "$([ -n "$SSH_TTY" ] && hostname && printf ": ")$TTY: $2" } precmd() { |