fix(init): Change Nushell init for nu 0.60 (#3773)

This commit is contained in:
David Knaack
2022-03-24 20:06:24 +01:00
committed by GitHub
parent 1f22f76a81
commit c9b75fe115
10 changed files with 52 additions and 60 deletions
+12 -11
View File
@@ -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`:
-10
View File
@@ -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 |