mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-15 19:26:50 +00:00
docs(nu): simplify nushell setup (#6445)
This commit is contained in:
parent
dfddd999c3
commit
ee6bf760d4
14
README.md
14
README.md
@ -339,20 +339,14 @@ eval $(starship init ion)
|
|||||||
<details>
|
<details>
|
||||||
<summary>Nushell</summary>
|
<summary>Nushell</summary>
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
```
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
Note: Only Nushell v0.96+ is supported
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Only Nushell v0.78+ is supported
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
@ -154,21 +154,15 @@ onMounted(() => {
|
|||||||
::: warning
|
::: warning
|
||||||
|
|
||||||
This will change in the future.
|
This will change in the future.
|
||||||
Only Nushell v0.78+ is supported.
|
Only Nushell v0.96+ is supported.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
|
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir ~/.cache/starship
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
```
|
|
||||||
|
|
||||||
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
use ~/.cache/starship/init.nu
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Xonsh
|
#### Xonsh
|
||||||
|
@ -351,13 +351,10 @@ print_install() {
|
|||||||
nushell )
|
nushell )
|
||||||
# shellcheck disable=SC2088
|
# shellcheck disable=SC2088
|
||||||
config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
|
config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
|
||||||
config_cmd="use ~/.cache/starship/init.nu"
|
config_cmd="mkdir (\$nu.data-dir | path join \"vendor/autoload\")
|
||||||
|
starship init nu | save -f (\$nu.data-dir | path join \"vendor/autoload/starship.nu\")"
|
||||||
warning="${warning} This will change in the future.
|
warning="${warning} This will change in the future.
|
||||||
Only Nushell v0.78 or higher is supported.
|
Only Nushell v0.96 or higher is supported."
|
||||||
Add the following to the end of ${BOLD}your Nushell env file${NO_COLOR} (find it by running ${BOLD}\$nu.env-path${NO_COLOR} in Nushell):
|
|
||||||
|
|
||||||
mkdir ~/.cache/starship
|
|
||||||
starship init nu | save -f ~/.cache/starship/init.nu"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
printf " %s\n %s\n And add the following to the end of %s:\n\n\t%s\n\n" \
|
printf " %s\n %s\n And add the following to the end of %s:\n\n\t%s\n\n" \
|
||||||
|
Loading…
Reference in New Issue
Block a user