feat: add support for nu shell (#2847)

This commit is contained in:
David Knaack
2021-07-04 21:32:58 +02:00
committed by GitHub
parent 196cc8aa39
commit cea1a1ceb1
17 changed files with 119 additions and 28 deletions
+17
View File
@@ -129,3 +129,20 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
#### Nushell
::: warning
This will change in the future.
Only nu version v0.33 or higher is supported.
:::
Add the following to your nu config file:
```toml
startup = [
"mkdir ~/.cache/starship",
"starship init nu | save ~/.cache/starship/init.nu",
"source ~/.cache/starship/init.nu"
]
prompt = "starship_prompt"
```
+3 -3
View File
@@ -413,7 +413,7 @@ look at [this example](#with-custom-error-shape).
::: warning
`error_symbol` is not supported on elvish shell.
`error_symbol` is not supported on elvish and nu shell.
:::
@@ -1487,7 +1487,7 @@ then the module will also show when there are 0 jobs running.
::: warning
This module is not supported on tcsh.
This module is not supported on tcsh and nu.
:::
@@ -2624,7 +2624,7 @@ To enable it, set `disabled` to `false` in your configuration file.
:::
::: warning
This module is not supported on elvish shell.
This module is not supported on elvish and nu shell.
:::
### Options