Auto dark/light mode switching, fix Mason

This commit is contained in:
Bartek Stalewski 2024-09-26 02:21:11 +02:00
parent 0d1e6f2967
commit 4d516d6b9d
Signed by: ftpd
SSH key fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo
7 changed files with 58 additions and 23 deletions

View file

@ -1,4 +1,4 @@
# mac specific configuration
# macOS specific
if [[ $(uname -s) = "Darwin" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
@ -36,7 +36,11 @@ fpath=(~/.local/git/zsh_modules/wd $fpath)
# theme and colors
if [[ $(command -v vivid) ]]; then
export LS_COLORS=$(vivid generate molokai)
if [[ "${macos_interface_style}" = "Dark" ]]; then
export LS_COLORS=$(vivid generate molokai)
else
export LS_COLORS=$(vivid generate ayu)
fi
else
unset LS_COLORS
fi