(zsh) remove auto theme switching

This commit is contained in:
jc 2025-02-02 21:57:17 -05:00
commit 3a85ebad74
No known key found for this signature in database

View file

@ -245,26 +245,26 @@ fi
export TERM_COLOR_MODE export TERM_COLOR_MODE
# set the terminal color theme # set the terminal color theme
USE_TERM=alacritty # USE_TERM=alacritty
if [ $TERM_COLOR_MODE = "light" ]; then # if [ $TERM_COLOR_MODE = "light" ]; then
if [ $USE_TERM = "kitty" ]; then # if [ $USE_TERM = "kitty" ]; then
kitten @ set-colors --all "$HOME/.config/kitty/light.conf" # kitten @ set-colors --all "$HOME/.config/kitty/light.conf"
fi # fi
if [ $USE_TERM = "alacritty" ]; then # if [ $USE_TERM = "alacritty" ]; then
theme_link="$HOME/.config/alacritty/theme.toml" # theme_link="$HOME/.config/alacritty/theme.toml"
rm -rf "$theme_link" # rm -rf "$theme_link"
ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/catppuccin_latte.toml" "$theme_link" # ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/catppuccin_latte.toml" "$theme_link"
fi # fi
else # else
if [ $USE_TERM = "kitty" ]; then # if [ $USE_TERM = "kitty" ]; then
kitten @ set-colors --all "$HOME/.config/kitty/dark.conf" # kitten @ set-colors --all "$HOME/.config/kitty/dark.conf"
fi # fi
if [ $USE_TERM = "alacritty" ]; then # if [ $USE_TERM = "alacritty" ]; then
theme_link="$HOME/.config/alacritty/theme.toml" # theme_link="$HOME/.config/alacritty/theme.toml"
rm -r "$theme_link" # rm -r "$theme_link"
ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/catppuccin_mocha.toml" "$theme_link" # ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/catppuccin_mocha.toml" "$theme_link"
fi # fi
fi # fi
type -p curl >/dev/null || echo -e "$WARNING curl is not installed" type -p curl >/dev/null || echo -e "$WARNING curl is not installed"