Auto dark/light mode switching, fix Mason
This commit is contained in:
parent
0d1e6f2967
commit
4d516d6b9d
7 changed files with 58 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue