From 382445dc4d21d190959f5582fb9b9febe056299a Mon Sep 17 00:00:00 2001 From: David Knaack Date: Thu, 5 May 2022 01:02:39 +0200 Subject: [PATCH] fix(nu): use the most recent starship init (#3908) --- README.md | 5 ++--- docs/README.md | 10 ++++------ install/install.sh | 11 +++++------ 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index edb9e10c3a0c..bff7ba157263 100644 --- a/README.md +++ b/README.md @@ -327,7 +327,7 @@ eval $(starship init ion)
Nushell -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
diff --git a/docs/README.md b/docs/README.md index d2519d5384ac..f15bc14b65e7 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 7fa235467b69..2fa69ef75b7d 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