mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
fix(init): Change Nushell init for nu 0.60 (#3773)
This commit is contained in:
+12
-11
@@ -136,20 +136,21 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
|
||||
::: warning
|
||||
This will change in the future.
|
||||
Only nu version v0.33 or higher is supported.
|
||||
Only Nushell v0.60+ is supported.
|
||||
:::
|
||||
Add the following to your nu config file. You can check the location of this
|
||||
file by running `config path` in nu.
|
||||
|
||||
```toml
|
||||
startup = [
|
||||
"mkdir ~/.cache/starship",
|
||||
"starship init nu | save ~/.cache/starship/init.nu",
|
||||
"source ~/.cache/starship/init.nu",
|
||||
]
|
||||
prompt = "starship_prompt"
|
||||
Run the following:
|
||||
```sh
|
||||
mkdir ~/.cache/starship
|
||||
starship init nu | save ~/.cache/starship/init.nu
|
||||
```
|
||||
|
||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
||||
|
||||
```sh
|
||||
mkdir ~/.cache/starship
|
||||
starship init nu | save ~/.cache/starship/init.nu
|
||||
source ~/.cache/starship/init.nu
|
||||
```
|
||||
#### Xonsh
|
||||
|
||||
Add the following to the end of `~/.xonshrc`:
|
||||
|
||||
@@ -512,12 +512,6 @@ look at [this example](#with-custom-error-shape).
|
||||
|
||||
::: warning
|
||||
|
||||
`error_symbol` is not supported on nu shell.
|
||||
|
||||
:::
|
||||
|
||||
::: warning
|
||||
|
||||
`vicmd_symbol` is only supported in cmd, fish and zsh.
|
||||
|
||||
:::
|
||||
@@ -3129,10 +3123,6 @@ To enable it, set `disabled` to `false` in your configuration file.
|
||||
|
||||
:::
|
||||
|
||||
::: warning
|
||||
This module is not supported on nu shell.
|
||||
:::
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
|
||||
Reference in New Issue
Block a user