fix helix theme switch for dms
This commit is contained in:
parent
b9ea744435
commit
b5ad8c5a32
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euox pipefail
|
||||
set -eu
|
||||
|
||||
HELIX_CONFIG_PATH=$(readlink -f "${HOME}/.config/helix/config.toml")
|
||||
HELIX_THEME_LIGHT="zed_onelight"
|
||||
|
|
@ -18,7 +18,7 @@ set_alacritty_theme() {
|
|||
sed -i "s/^import .*/import = \[\"\~\/\.config\/alacritty\/themes\/$1\.toml\"\]/" "$ALACRITTY_CONFIG_PATH"
|
||||
}
|
||||
|
||||
if [[ "$2" == "prefer-dark" ]]; then
|
||||
if [[ "$2" == "dark" || "$2" == "prefer-dark" ]]; then
|
||||
set_helix_theme "$HELIX_THEME_DARK"
|
||||
set_alacritty_theme "$ALACRITTY_THEME_DARK"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue