add nushell terminal and completion support (#8628)

Signed-off-by: Can H. Tartanoglu <gpg@rotas.mozmail.com>
This commit is contained in:
Can H. Tartanoglu
2026-05-13 01:39:28 +02:00
committed by GitHub
parent ba60b597fa
commit 80cac3626f
7 changed files with 375 additions and 34 deletions
@@ -104,7 +104,7 @@ Once installed, you can:
- Discover options without checking `--help`
**Arguments:**
- **`<SHELL>`**: The shell to generate completions for. Supported shells: `bash`, `elvish`, `fish`, `powershell`, `zsh`
- **`<SHELL>`**: The shell to generate completions for. Supported shells: `bash`, `elvish`, `fish`, `nu`, `powershell`, `zsh`
**Usage:**
```bash
@@ -112,6 +112,7 @@ Once installed, you can:
goose completion bash
goose completion zsh
goose completion fish
goose completion nu
```
**Installation by Shell:**
@@ -153,6 +154,20 @@ goose completion fish > ~/.config/fish/completions/goose.fish
Then restart your terminal or run `exec fish`.
</TabItem>
<TabItem value="nu" label="Nushell">
```nu
let autoload_dir = ($nu.user-autoload-dirs | first)
mkdir $autoload_dir
goose completion nu | save --force ($autoload_dir | path join "goose.nu")
```
Then restart Nushell or run:
```nu
source (($nu.user-autoload-dirs | first) | path join "goose.nu")
```
</TabItem>
<TabItem value="powershell" label="PowerShell">