mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-25 04:11:49 +08:00
fix(zshrc): direnv and bat
This commit is contained in:
parent
02ce96b663
commit
55ecd4440b
12
.zshrc
12
.zshrc
@ -34,14 +34,14 @@ zinit light zsh-users/zsh-history-substring-search
|
|||||||
|
|
||||||
# Software
|
# Software
|
||||||
if ! command -v bat &> /dev/null ; then
|
if ! command -v bat &> /dev/null ; then
|
||||||
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
||||||
zinit light sharkdp/bat
|
zinit light sharkdp/bat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v direnv &> /dev/null; then
|
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||||
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
|
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||||
zinit light direnv/direnv
|
pick"direnv" src="zhook.zsh" for \
|
||||||
fi
|
direnv/direnv
|
||||||
|
|
||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
Loading…
Reference in New Issue
Block a user