From 69929dd0ac13bf85f0014a3ca40c48655485c5f1 Mon Sep 17 00:00:00 2001 From: cassis163 <42798012+cassis163@users.noreply.github.com> Date: Fri, 30 Dec 2022 18:04:47 +0100 Subject: [PATCH] docs(nu): Add `-f` flag (#4777) * Add missing -f flag in documentation * Fix Nushell version --- README.md | 4 ++-- docs/README.md | 4 ++-- install/install.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aee10750..fea32bc7 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ Add the following to the end of your Nushell env file (find it by running `$nu.e ```sh mkdir ~/.cache/starship -starship init nu | save ~/.cache/starship/init.nu +starship init nu | save -f ~/.cache/starship/init.nu ``` And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): @@ -341,7 +341,7 @@ And add the following to the end of your Nushell configuration (find it by runni source ~/.cache/starship/init.nu ``` -Note: Only Nushell v0.61+ is supported +Note: Only Nushell v0.73+ is supported diff --git a/docs/README.md b/docs/README.md index 720a5607..0665a431 100644 --- a/docs/README.md +++ b/docs/README.md @@ -138,14 +138,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p ::: warning This will change in the future. - Only Nushell v0.61+ is supported. + Only Nushell v0.73+ is supported. ::: Add the following 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 + starship init nu | save -f ~/.cache/starship/init.nu ``` And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`): diff --git a/install/install.sh b/install/install.sh index b100b9eb..65d30422 100755 --- a/install/install.sh +++ b/install/install.sh @@ -338,10 +338,10 @@ print_install() { # 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 ~/.cache/starship/init.nu + starship init nu | save -f ~/.cache/starship/init.nu source ~/.cache/starship/init.nu" warning="${warning} This will change in the future. - Only Nushell v0.61 or higher is supported. + Only Nushell v0.73 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