refactor dircolors

This commit is contained in:
2024-10-28 15:51:23 -04:00
parent 1d41f36063
commit e95b7cf431
+7 -3
View File
@@ -71,11 +71,15 @@ if [[ "$OSTYPE" =~ ^linux ]]; then
fi fi
# set up dircolors # set up dircolors
if [ $(uname -s) = 'Darwin' ]; then case $(uname -s) in
Darwin)
[[ ! -f $(which gdircolors) ]] || $(test -f $HOME/.dir_colors && eval $(gdircolors $HOME/.dir_colors) || eval $(gdircolors)) [[ ! -f $(which gdircolors) ]] || $(test -f $HOME/.dir_colors && eval $(gdircolors $HOME/.dir_colors) || eval $(gdircolors))
else ;;
Linux)
test -f $HOME/.dir_colors && eval $(dircolors -b $HOME/.dir_colors) || eval $(dircolors -b) test -f $HOME/.dir_colors && eval $(dircolors -b $HOME/.dir_colors) || eval $(dircolors -b)
fi ;;
*) ;;
esac
# Fix ctrl+r # Fix ctrl+r
[[ ! -f $ZSH/custom/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh ]] || source $ZSH/custom/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh [[ ! -f $ZSH/custom/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh ]] || source $ZSH/custom/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh