summary refs log tree commit diff stats
path: root/user/zsh/zshrc.darwin
diff options
context:
space:
mode:
Diffstat (limited to 'user/zsh/zshrc.darwin')
-rw-r--r--user/zsh/zshrc.darwin15
1 files changed, 10 insertions, 5 deletions
diff --git a/user/zsh/zshrc.darwin b/user/zsh/zshrc.darwin
index 1b4ecc9b..c8f17a43 100644
--- a/user/zsh/zshrc.darwin
+++ b/user/zsh/zshrc.darwin
@@ -10,11 +10,16 @@ ssh() {
 			break
 		fi
 	done
-	set_title "file://${server}/"
-	command ssh "$@"
-	retval=$?
-	set_title
-	return $retval
+	if [[ ! -p /dev/fd/1 ]]; then
+		set_title "file://${server}/"
+		command ssh "$@"
+		retval=$?
+		set_title
+		return $retval
+	else
+		command ssh "$@"
+		return $retval
+	fi
 }
 mosh() {
 	command mosh "$@"