added bun autocompletion
Signed-off-by: cswimr <seaswimmerthefsh@gmail.com>
This commit is contained in:
parent
ca3ee7fd64
commit
62e406e707
1 changed files with 6 additions and 0 deletions
6
.zshrc
6
.zshrc
|
@ -81,6 +81,12 @@ export NVM_AUTO_USE=true
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(git colored-man-pages colorize command-not-found cp pyenv pip python virtualenv virtualenvwrapper poetry-env systemd archlinux appup zsh-nvm zsh-better-npm-completion fast-syntax-highlighting)
|
plugins=(git colored-man-pages colorize command-not-found cp pyenv pip python virtualenv virtualenvwrapper poetry-env systemd archlinux appup zsh-nvm zsh-better-npm-completion fast-syntax-highlighting)
|
||||||
fpath+="${ZSH_CUSTOM:-"$ZSH/custom"}/plugins/zsh-completions/src"
|
fpath+="${ZSH_CUSTOM:-"$ZSH/custom"}/plugins/zsh-completions/src"
|
||||||
|
if (( $+commands[bun] )); then
|
||||||
|
[ -s ~/.bun/_bun ] || bun completions
|
||||||
|
|
||||||
|
# cannot source directly, must add fpath to completions
|
||||||
|
fpath+=~/.bun/
|
||||||
|
fi
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
Reference in a new issue