(bash) fix toggle theme issue for alacritty
This commit is contained in:
parent
e61cd690f7
commit
9b1886f316
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue