diff --git a/README.md b/README.md index 8c87db04b..d9f87c11b 100644 --- a/README.md +++ b/README.md @@ -339,20 +339,14 @@ eval $(starship init ion)
Nushell -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 -mkdir ~/.cache/starship -starship init nu | save -f ~/.cache/starship/init.nu +mkdir ($nu.data-dir | path join "vendor/autoload") +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 -``` - -Note: Only Nushell v0.78+ is supported +Note: Only Nushell v0.96+ is supported
diff --git a/docs/README.md b/docs/README.md index 89164622c..de1d7d7c6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -154,21 +154,15 @@ onMounted(() => { ::: warning 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 - mkdir ~/.cache/starship - starship init nu | save -f ~/.cache/starship/init.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 + mkdir ($nu.data-dir | path join "vendor/autoload") + starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu") ``` #### Xonsh diff --git a/install/install.sh b/install/install.sh index c068680a0..c77424753 100755 --- a/install/install.sh +++ b/install/install.sh @@ -351,13 +351,10 @@ print_install() { nushell ) # 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_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. - Only Nushell v0.78 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" + Only Nushell v0.96 or higher is supported." ;; esac printf " %s\n %s\n And add the following to the end of %s:\n\n\t%s\n\n" \