mirror of
https://github.com/starship/starship.git
synced 2025-02-22 21:31:59 +01:00
update the Nushell part of the install script
This commit is contained in:
parent
2206296cfc
commit
117580136d
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user