fix(bun): bun completions should explicitly set SHELL

`bun completions` results in a file according to the current $SHELL, but if you don´t have ZSH as your $SHELL, the plugin will create a bash script as the completions script. This commit fixes that case.

Users with broken completions probably need to remove their `$ZSH_CACHE_DIR/completions/_bun` so it is created again.
This commit is contained in:
Pedro Barbiero 2024-07-02 11:18:52 -03:00 committed by GitHub
commit f5795c31a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,4 +11,4 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_bun" ]]; then
_comps[bun]=_bun
fi
bun completions >| "$ZSH_CACHE_DIR/completions/_bun" &|
SHELL=zsh bun completions >| "$ZSH_CACHE_DIR/completions/_bun" &|