(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
|
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"
|
if [ -L "$theme_link" ]; then
|
||||||
ln "$HOME/.config/alacritty/themes/themes/$theme.toml" "$theme_link"
|
rm "$theme_link"
|
||||||
|
fi
|
||||||
|
ln -s "$HOME/ghq/alacritty/alacritty-theme/themes/$theme.toml" "$theme_link"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue