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

This commit is contained in:
2024-09-13 15:33:45 +02:00
parent 0a3baf545c
commit b8660a92ca
+4
View File
@@ -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 "%~")")