From 0eb7b8bf67adc3cf1f56b648e15955090eefa751 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 13 Sep 2024 15:33:45 +0200 Subject: [PATCH] fix(zsh): skip setting terminal title if ssh session --- zsh/rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/rc b/zsh/rc index 85e708b..1099b84 100644 --- a/zsh/rc +++ b/zsh/rc @@ -118,6 +118,10 @@ unset _antidote _plugins _plugins_cache # Ref: https://zsh.sourceforge.io/Doc/Release/Functions.html#Functions function set_terminal_title() { + if [ -n "$SSH_CLIENT" ]; then + return + fi + local title if [ -z "$1" ]; then title=$(basename "$(print -P "%~")")