From f5795c31a2e05c927eccc1fc28db98140b1351bd Mon Sep 17 00:00:00 2001 From: Pedro Barbiero Date: Tue, 2 Jul 2024 11:18:52 -0300 Subject: [PATCH] fix(bun): bun completions should explicitly set SHELL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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. --- plugins/bun/bun.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bun/bun.plugin.zsh b/plugins/bun/bun.plugin.zsh index 9924faa84..576dbbfeb 100644 --- a/plugins/bun/bun.plugin.zsh +++ b/plugins/bun/bun.plugin.zsh @@ -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" &|