mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 02:41:50 +08:00
Add checks for direnv, and better bsd support
This commit is contained in:
parent
17315c0dfa
commit
48c14ac3fe
16
.zshrc
16
.zshrc
@ -32,18 +32,22 @@ if ! command -v bat &> /dev/null ; then
|
|||||||
zinit light sharkdp/bat
|
zinit light sharkdp/bat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
if ! command -v direnv &> /dev/null ; then
|
||||||
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||||
pick"direnv" src="zhook.zsh" for \
|
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||||
direnv/direnv
|
pick"direnv" src="zhook.zsh" for \
|
||||||
|
direnv/direnv
|
||||||
|
fi
|
||||||
|
|
||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
|
||||||
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
# Set ls colors for GNU/Linux, BSDs doesn't need this
|
||||||
|
if [[ $(uname) = "Linux" ]]; then
|
||||||
|
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
||||||
|
fi
|
||||||
|
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
||||||
zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
|
zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
|
||||||
zstyle ':completion:*' completions 1
|
zstyle ':completion:*' completions 1
|
||||||
|
Loading…
Reference in New Issue
Block a user