summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-05-05 01:02:39 +0200
committerGitHub <noreply@github.com>2022-05-04 19:02:39 -0400
commit382445dc4d21d190959f5582fb9b9febe056299a (patch)
treef66ee1ced13f8763cdc1c2826bd6e365fb3ca8e5
parent393d62c726573a0e6c351f422dbef4b17a5944bf (diff)
fix(nu): use the most recent starship init (#3908)
-rw-r--r--README.md5
-rw-r--r--docs/README.md10
-rwxr-xr-xinstall/install.sh11
3 files changed, 11 insertions, 15 deletions
diff --git a/README.md b/README.md
index edb9e10c3..bff7ba157 100644
--- a/README.md
+++ b/README.md
@@ -327,7 +327,7 @@ eval $(starship init ion)
<details>
<summary>Nushell</summary>
-Run the following:
+Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh
mkdir ~/.cache/starship
@@ -337,11 +337,10 @@ 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
-starship init nu | save ~/.cache/starship/init.nu
source ~/.cache/starship/init.nu
```
-Note: Only Nushell v0.60+ is supported
+Note: Only Nushell v0.61+ is supported
</details>
diff --git a/docs/README.md b/docs/README.md
index d2519d538..f15bc14b6 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -139,11 +139,11 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: warning
This will change in the future.
- Only Nushell v0.60+ is supported.
-
+ Only Nushell v0.61+ is supported.
+
:::
-
- Run the following:
+
+ Add the following to to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
```sh
mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
@@ -152,8 +152,6 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
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
diff --git a/install/install.sh b/install/install.sh
index 7fa235467..2fa69ef75 100755
--- a/install/install.sh
+++ b/install/install.sh
@@ -336,20 +336,19 @@ print_install() {
;;
nushell )
# shellcheck disable=SC2088
- config_file="your nu config file"
+ config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
config_cmd="mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
source ~/.cache/starship/init.nu"
warning="${warning} This will change in the future.
- Only Nushell v0.60 or higher is supported.
- You can check the location of this your config file by running \$nu.config-path in nu.
- ${BOLD}First run${NO_COLOR} \"mkdir ~/.cache/starship; starship init nu | save ~/.cache/starship/init.nu\""
+ Only Nushell v0.61 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 ~/.cache/starship/init.nu\""
;;
esac
- printf " %s\n %s\n 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" \
"${BOLD}${UNDERLINE}${s}${NO_COLOR}" \
"${warning}" \
- "${BOLD}${config_file}${NO_COLOR}" \
+ "${config_file}" \
"${config_cmd}"
done