diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 5a7ac23..feb4c82 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -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 }