refactor dircolors
This commit is contained in:
@@ -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
|
||||||
[[ ! -f $(which gdircolors) ]] || $(test -f $HOME/.dir_colors && eval $(gdircolors $HOME/.dir_colors) || eval $(gdircolors))
|
Darwin)
|
||||||
else
|
[[ ! -f $(which gdircolors) ]] || $(test -f $HOME/.dir_colors && eval $(gdircolors $HOME/.dir_colors) || eval $(gdircolors))
|
||||||
test -f $HOME/.dir_colors && eval $(dircolors -b $HOME/.dir_colors) || eval $(dircolors -b)
|
;;
|
||||||
fi
|
Linux)
|
||||||
|
test -f $HOME/.dir_colors && eval $(dircolors -b $HOME/.dir_colors) || eval $(dircolors -b)
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user