[U] SSH patch for kitty

This commit is contained in:
Azalea Gui
2023-01-07 11:22:59 -05:00
parent 49ab346b71
commit 10800cdb76
+10
View File
@@ -272,6 +272,16 @@ git-unenv() {
done
}
# SSH Patch
SSH_BIN=$(which ssh)
ssh() {
if [[ "$TERM" == 'xterm-kitty' ]]; then
env TERM=xterm-256color "$SSH_BIN" "$@"
else
"$SSH_BIN" "$@"
fi
}
# Mac hostname
mac-hostname() {
name="$@"