fix(zsh): skip setting terminal title if ssh session

This commit is contained in:
Oscar Wallberg
2024-09-13 15:33:45 +02:00
parent 5c87341977
commit 0eb7b8bf67
+4
View File
@@ -118,6 +118,10 @@ unset _antidote _plugins _plugins_cache
# Ref: https://zsh.sourceforge.io/Doc/Release/Functions.html#Functions # Ref: https://zsh.sourceforge.io/Doc/Release/Functions.html#Functions
function set_terminal_title() { function set_terminal_title() {
if [ -n "$SSH_CLIENT" ]; then
return
fi
local title local title
if [ -z "$1" ]; then if [ -z "$1" ]; then
title=$(basename "$(print -P "%~")") title=$(basename "$(print -P "%~")")