diff --git a/README.md b/README.md index 25409db1..0da15fb7 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,13 @@ shown below. Can't see yours? Have a look at the [extra platform instructions](h ``` To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration. + + **Note** - The defaults of the install script can be overridden see the built-in help. + + ```sh + sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help + ``` + #### Install via Package Manager ##### Example: [Homebrew](https://brew.sh/): diff --git a/install/install.sh b/install/install.sh index b08474b4..6e1c41ab 100755 --- a/install/install.sh +++ b/install/install.sh @@ -2,26 +2,6 @@ # shellcheck disable=SC2039 -# Options -# -# -V, --verbose -# Enable verbose output for the installer -# -# -f, -y, --force, --yes -# Skip the confirmation prompt during installation -# -# -p, --platform -# Override the platform identified by the installer -# -# -b, --bin-dir -# Override the bin installation directory -# -# -a, --arch -# Override the architecture identified by the installer -# -# -B, --base-url -# Override the base URL used for downloading releases - set -eu printf '\n' @@ -138,6 +118,39 @@ unpack() { return 1 } +usage() { + cat <