update the Nushell part of the install script

This commit is contained in:
amtoine 2023-06-08 19:13:21 +02:00
parent 2206296cfc
commit 117580136d
No known key found for this signature in database
GPG key ID: 37AAE9B486CFF1AB

View file

@ -337,15 +337,15 @@ 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="mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
source ~/.cache/starship/init.nu"
config_cmd="\`use ~/.cache/starship/init.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\"
Note: the Nushell init file is both a script, a module and an overlay.
this means \`use init.nu\` and \`overlay use init.nu\` are also valid activations for Nushell."
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):
\`\`\`nu
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
\`\`\`"
;;
esac
printf " %s\n %s\n And add the following to the end of %s:\n\n\t%s\n\n" \