Fixed kitty_theme causing i/o errors in other terminals
This commit is contained in:
@@ -39,6 +39,7 @@ in
|
|||||||
}
|
}
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
kitty_theme() {
|
kitty_theme() {
|
||||||
|
if [ $TERM = "kitty" ]; then
|
||||||
if [ -n "$SSH_CONNECTION" ]; then
|
if [ -n "$SSH_CONNECTION" ]; then
|
||||||
kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf
|
kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf
|
||||||
elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then
|
elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then
|
||||||
@@ -46,6 +47,7 @@ in
|
|||||||
else
|
else
|
||||||
kitty @ set-colors -a ~/.config/kitty/default-theme.conf
|
kitty @ set-colors -a ~/.config/kitty/default-theme.conf
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
grimblast() {
|
grimblast() {
|
||||||
if command grimblast "$@"; then
|
if command grimblast "$@"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user