mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 02:41:50 +08:00
fix(zshrc): direnv and bat
This commit is contained in:
parent
02ce96b663
commit
55ecd4440b
8
.zshrc
8
.zshrc
@ -38,10 +38,10 @@ if ! command -v bat &> /dev/null ; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user