fix(zshrc): direnv and bat

This commit is contained in:
Ryan 2024-03-21 10:36:33 +08:00
parent 02ce96b663
commit 55ecd4440b
1 changed files with 6 additions and 6 deletions

12
.zshrc
View File

@ -34,14 +34,14 @@ zinit light zsh-users/zsh-history-substring-search
# Software
if ! command -v bat &> /dev/null ; then
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
zinit light sharkdp/bat
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
zinit light sharkdp/bat
fi
if ! command -v direnv &> /dev/null; then
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
zinit light direnv/direnv
fi
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
pick"direnv" src="zhook.zsh" for \
direnv/direnv
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit