docs: update install instructions (#2553)

Use POSIX `sh`, mitigate possible timing attacks.
This commit is contained in:
Dario Vladović 2021-04-08 19:42:45 +02:00 committed by GitHub
parent 7a0046ed58
commit ea35359a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -157,7 +157,7 @@ shown below. Can't see yours? Have a look at the [extra platform instructions](h
##### From prebuilt binary, with Shell:
```sh
curl -fsSL https://starship.rs/install.sh | bash
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.

View File

@ -35,7 +35,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
With Shell:
```sh
curl -fsSL https://starship.rs/install.sh | bash
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.

View File

@ -53,7 +53,7 @@ The prompt will use as much context as is provided, but no flags are "required".
If you get an error like "_version 'GLIBC_2.18' not found (required by starship)_" when using the prebuilt binary (for example, on CentOS 6 or 7), you can use a binary compiled with `musl` instead of `glibc`:
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- --platform unknown-linux-musl
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux-musl
```
## I see symbols I don't understand or expect, what do they mean?
@ -97,7 +97,7 @@ Starship is just as easy to uninstall as it is to install in the first place.
If Starship was installed using a package manager, please refer to their docs for uninstallation instructions.
If Starship was installed using the `curl | bash` script, the following command will delete the binary:
If Starship was installed using the install script, the following command will delete the binary:
```sh
# Locate and delete the starship binary

View File

@ -36,7 +36,7 @@ pkg install getconf
### Installation
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
```
## [Nix](https://nixos.wiki/wiki/Nix)