summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2023-04-08 21:48:20 +0200
committerAlan Pearce2023-04-08 21:48:20 +0200
commit617a1079107ab599c28a3cbbde69b1e9a1acc981 (patch)
tree5d1f2ab06ea5d0028f1dcf8bf3ab61af87795864 /user/zsh
parent7f7c35e137a58646db51b7f3005eaca289f21f36 (diff)
downloadnixfiles-617a1079107ab599c28a3cbbde69b1e9a1acc981.tar.lz
nixfiles-617a1079107ab599c28a3cbbde69b1e9a1acc981.tar.zst
nixfiles-617a1079107ab599c28a3cbbde69b1e9a1acc981.zip
zsh: set nicer terminal titles on darwin for SSH
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/zshrc.darwin3
1 files changed, 2 insertions, 1 deletions
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