Cleaned up some leftover logic from old dynamic kitty theme method
This commit is contained in:
@@ -20,20 +20,20 @@ in
|
|||||||
export RESULT
|
export RESULT
|
||||||
echo "\$RESULT = $RESULT"
|
echo "\$RESULT = $RESULT"
|
||||||
}
|
}
|
||||||
|
precmd() { # Reset kitty color scheme
|
||||||
|
trap 'NIX_SHELL=false kitty_theme' EXIT SIGINT SIGTERM SIGHUP
|
||||||
|
}
|
||||||
nix-shell() {
|
nix-shell() {
|
||||||
# set an environment variable to track if you're in a nix shell or not
|
|
||||||
trap 'NIX_SHELL=false kitty_theme' EXIT
|
|
||||||
NIX_SHELL=true command nix-shell "$@" --run zsh
|
NIX_SHELL=true command nix-shell "$@" --run zsh
|
||||||
}
|
}
|
||||||
|
nsp() {
|
||||||
|
NIX_SHELL=true command nix-shell -p "$@" --run zsh
|
||||||
|
}
|
||||||
nvim() {
|
nvim() {
|
||||||
${shellsound} ${sndpath}/nvim.wav
|
${shellsound} ${sndpath}/nvim.wav
|
||||||
command nvim "$@"
|
command nvim "$@"
|
||||||
}
|
}
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
ssh() { # reverts ssh theme upon returning
|
|
||||||
command ssh "$@"
|
|
||||||
kitty_ssh_theme
|
|
||||||
}
|
|
||||||
kitty_theme() {
|
kitty_theme() {
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user