fixed ssh-theme logic again and also wrote a wrapper function for ssh that reverts the theme upon return

This commit is contained in:
pagedmov
2024-11-03 01:02:01 -05:00
parent 49af09e09a
commit 6b73818753

View File

@@ -76,11 +76,15 @@
runbg aplay "$1"
fi
}
ssh() { # reverts ssh theme upon returning
command ssh "$@"
kitty_ssh_theme
}
kitty_ssh_theme() {
if [ -z "$SSH_CONNECTION" ]; then
if [ -n "$SSH_CONNECTION" ]; then
kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf
else
kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf
kitty @ set-colors -a ~/.config/kitty/default-theme.conf
fi
}
gitcheckout_sfx() {