fix(init): Change Nushell init for nu 0.60 (#3773)

This commit is contained in:
David Knaack
2022-03-24 20:06:24 +01:00
committed by GitHub
parent 1f22f76a81
commit c9b75fe115
10 changed files with 52 additions and 60 deletions
+8 -10
View File
@@ -297,7 +297,7 @@ print_install() {
# we don't want these '~' expanding
config_file="~/.${s}rc"
config_cmd="eval \"\$(starship init ${s})\""
case ${s} in
ion )
# shellcheck disable=SC2088
@@ -336,16 +336,14 @@ print_install() {
;;
nushell )
# shellcheck disable=SC2088
config_file="your nu config file."
config_cmd="startup = [
\"mkdir ~/.cache/starship\",
\"starship init nu | save ~/.cache/starship/init.nu\",
\"source ~/.cache/starship/init.nu\"
]
prompt = \"starship_prompt\""
config_file="your nu config file"
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 nu version v0.33 or higher is supported.
You can check the location of this your config file by running config path in nu"
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\""
;;
esac
printf " %s\n %s\n Add the following to the end of %s:\n\n\t%s\n\n" \