diff --git a/README.md b/README.md index edb9e10c..bff7ba15 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 d2519d53..f15bc14b 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 7fa23546..2fa69ef7 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