From 617a1079107ab599c28a3cbbde69b1e9a1acc981 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 8 Apr 2023 21:48:20 +0200 Subject: zsh: set nicer terminal titles on darwin for SSH --- user/zsh/zshrc.darwin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user/zsh/zshrc.darwin') diff --git a/user/zsh/zshrc.darwin b/user/zsh/zshrc.darwin index 320b8267..58093e09 100644 --- a/user/zsh/zshrc.darwin +++ b/user/zsh/zshrc.darwin @@ -11,7 +11,7 @@ ssh() { fi done if [[ ! -p /dev/fd/1 ]]; then - set_title "file://${server}/" + set_title "ssh $server" command ssh "$@" retval=$? set_title @@ -22,6 +22,7 @@ ssh() { fi } mosh() { + set_title "mosh $@" command mosh "$@" retval=$? set_title -- cgit 1.4.1