(bash) fix toggle theme issue for alacritty

This commit is contained in:
jc 2024-08-19 11:57:12 -04:00
commit 9b1886f316

View file

@ -274,8 +274,10 @@ toggle_theme() {
fi
if [ $USE_TERM == "alacritty" ]; then
theme_link="$HOME/.config/alacritty/theme.toml"
rm -r "$theme_link"
ln "$HOME/.config/alacritty/themes/themes/$theme.toml" "$theme_link"
if [ -L "$theme_link" ]; then
rm "$theme_link"
fi
ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/$theme.toml" "$theme_link"
fi
}