diff --git a/completions/bun.fish b/completions/bun.fish index 63e0ac29ba..db2ac60a65 100644 --- a/completions/bun.fish +++ b/completions/bun.fish @@ -50,8 +50,8 @@ function __bun_last_cmd --argument-names n test "(cmds[-1])" = "$n" end -set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose -set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't install devDependencies" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependenices" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" +set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global +set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't install devDependencies" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependenices" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" set -l bun_builtin_cmds dev create help bun upgrade discord run install remove add set -l bun_builtin_cmds_without_run dev create help bun upgrade discord install remove add diff --git a/completions/bun.zsh b/completions/bun.zsh index f6c68afc36..6298aa4b16 100644 --- a/completions/bun.zsh +++ b/completions/bun.zsh @@ -36,6 +36,8 @@ _bun() { '--token[Authentication token used for npm registry requests (default: \$npm_config_token)]:token' \ '-y[Write a yarn.lock file (yarn v1)]' \ '--yarn[Write a yarn.lock file (yarn v1)]' \ + '-g[Add a package globally]' \ + '--global[Add a package globally]' \ '--production[Don'"'"'t install devDependencies]' \ '--optional[Add dependency to optionalDependencies]' \ '--development[Add dependency to devDependencies]' \ @@ -214,6 +216,8 @@ _bun() { '-V[Show version and exit]' \ '--cwd[Change directory]:cwd' \ '--help[Show command help]' \ + '-g[Add a package globally]' \ + '--global[Add a package globally]' \ '-h[Show command help]' \ '--all[]' && ret=0 @@ -229,6 +233,8 @@ _bun() { '--version[Show version and exit]' \ '-V[Show version and exit]' \ '--cwd[Change directory]:cwd' \ + '-g[Remove a package globally]' \ + '--global[Remove a package globally]' \ '--help[Show command help]' \ '-h[Show command help]' \ '--all[]' && @@ -387,6 +393,8 @@ _bun() { '--silent[Don'"'"'t output anything]' \ '--verbose[Excessively verbose logging]' \ '--cwd[Set a specific cwd]:cwd' \ + '-g[Add a package globally]' \ + '--global[Add a package globally]' \ '--backend[Platform-specific optimizations for installing dependencies]:backend:("clonefile" "copyfile" "hardlink" "clonefile_each_dir")' \ '--link-native-bins[Link "bin" from a matching platform-specific dependency instead. Default: esbuild, turbo]:link-native-bins' && ret=0 @@ -411,6 +419,8 @@ _bun() { '-p[Don'"'"'t install devDependencies]' \ '--no-save[]' \ '--dry-run[Don'"'"'t install anything]' \ + '-g[Remove a package globally]' \ + '--global[Remove a package globally]' \ '--force[Always request the latest versions from the registry & reinstall all dependenices]' \ '--lockfile[Store & load a lockfile at a specific filepath]:lockfile' \ '--cache-dir[Store & load cached data from a specific directory path]:cache-dir' \