From 62e406e707a8d33e6340b34cb1f705ff639c202d Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 7 Oct 2024 16:45:41 -0400 Subject: [PATCH] added bun autocompletion Signed-off-by: cswimr --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index 02c7150..13b2c86 100644 --- a/.zshrc +++ b/.zshrc @@ -81,6 +81,12 @@ export NVM_AUTO_USE=true # 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) 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 # User configuration