all repos — nixfiles @ 617a1079107ab599c28a3cbbde69b1e9a1acc981

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

zsh: set nicer terminal titles on darwin for SSH
Alan Pearce alan@alanpearce.eu
Sat, 08 Apr 2023 21:48:20 +0200
commit

617a1079107ab599c28a3cbbde69b1e9a1acc981

parent

7f7c35e137a58646db51b7f3005eaca289f21f36

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

jump to
M user/zsh/zshrc.darwinuser/zsh/zshrc.darwin
@@ -11,7 +11,7 @@ break 		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 @@ return $retval 	fi
 }
 mosh() {
+	set_title "mosh $@"
 	command mosh "$@"
 	retval=$?
 	set_title