summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2022-03-08 15:47:54 -0500
committerGitHub <noreply@github.com>2022-03-08 15:47:54 -0500
commit48f1f756f8922e2c24b1ee638bd0b8a7ae4be9aa (patch)
tree59a09db539a3cc8c743d64ef46f864dcabb4bef0
parent076a9e6b8e715fc200812f6a73a17a9764d45aba (diff)
fix: use shell-compatible curl install (#3691)
-rw-r--r--README.md4
-rw-r--r--docs/README.md3
-rw-r--r--docs/faq/README.md2
-rw-r--r--docs/installing/README.md2
4 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index e75584c2e..44464cbc4 100644
--- a/README.md
+++ b/README.md
@@ -203,7 +203,7 @@ Install Starship using any of the following package managers:
Install the latest version for your system:
```sh
-sh -c "$(curl -fsSL https://starship.rs/install.sh)"
+curl -sS https://starship.rs/install.sh | sh
```
Alternatively, install Starship using any of the following package managers:
@@ -232,7 +232,7 @@ Alternatively, install Starship using any of the following package managers:
Install the latest version for your system:
```sh
-sh -c "$(curl -fsSL https://starship.rs/install.sh)"
+curl -sS https://starship.rs/install.sh | sh
```
Alternatively, install Starship using any of the following package managers:
diff --git a/docs/README.md b/docs/README.md
index ab227d603..dd16c17ad 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -39,8 +39,9 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
With Shell:
```sh
- sh -c "$(curl -fsSL https://starship.rs/install.sh)"
+ curl -sS https://starship.rs/install.sh | sh
```
+
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
#### Install via Package Manager
diff --git a/docs/faq/README.md b/docs/faq/README.md
index 00fcb359d..b8ceb7afc 100644
--- a/docs/faq/README.md
+++ b/docs/faq/README.md
@@ -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
-sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux-musl
+curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
```
## Why do I see `Executing command "..." timed out.` warnings?
diff --git a/docs/installing/README.md b/docs/installing/README.md
index 82274aa0e..39fd25f7b 100644
--- a/docs/installing/README.md
+++ b/docs/installing/README.md
@@ -36,7 +36,7 @@ pkg install getconf
### Installation
```sh
-sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
+curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.termux/files/usr/bin
```
## [Funtoo Linux](https://www.funtoo.org/Welcome)