summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Coleman <MEHColeman@users.noreply.github.com>2019-07-12 13:16:00 +0100
committerMarc Cornellà <marc.cornella@live.com>2019-07-12 14:16:00 +0200
commit29fb617e6b6b18fc7bdfef74fc57bbdf0e2fe52b (patch)
treea5d69fe3eb57e5d27d41f8db27d3e6bf4f4b3809
parent6cb98eda151253e7f11678abef7f0e7b5c96f12d (diff)
downloadzsh-29fb617e6b6b18fc7bdfef74fc57bbdf0e2fe52b.tar.gz
zsh-29fb617e6b6b18fc7bdfef74fc57bbdf0e2fe52b.tar.bz2
zsh-29fb617e6b6b18fc7bdfef74fc57bbdf0e2fe52b.zip
readme: document oneliner unattended installation command (#7983)
The original suggestion for an unattended install downloads the installation script to a file, then runs that file with the --unattended argument. The install.sh file would be left behind after the suggested command was run. This change passes the --unattended argument directly into sh. So, it's a nice one-liner like the default installation script, and it doesn't leave a dangling install.sh script.
-rw-r--r--README.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index 43dcdd3a2..78a5b56bd 100644
--- a/README.md
+++ b/README.md
@@ -159,8 +159,7 @@ flag `--unattended` to the `install.sh` script. This will have the effect of not
the default shell, and also won't run `zsh` when the installation has finished.
```shell
-curl -Lo install.sh https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
-sh install.sh --unattended
+sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended
```
#### Installing from a forked repository