f9993d0c687c0fb50490aa530adee57ea4c70c12

Author
Olivia (Zoe) <zoe.i2k1@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

docs: document the off-GitHub installation URL (#12079)

Diff

 1diff --git a/README.md b/README.md
 2index 49998687906717d1ccd5492ea1cc8f3733cff6da..98743432d5f0c7f9c5aaa45688ad8609b485085b 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -88,6 +88,14 @@ Oh My Zsh is installed by running one of the following commands in your terminal
 6 | **wget**  | `sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`   |
 7 | **fetch** | `sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"` |
 8 
 9+Alternatively, the installer is also mirrored outside GitHub. Using this URL instead may be required if you're in a country like India or China, that blocks `raw.githubusercontent.com`:
10+
11+| Method    | Command                                                                                           |
12+| :-------- | :------------------------------------------------------------------------------------------------ |
13+| **curl**  | `sh -c "$(curl -fsSL https://install.ohmyz.sh/)"`                                                 |
14+| **wget**  | `sh -c "$(wget -O- https://install.ohmyz.sh/)"`                                                   |
15+| **fetch** | `sh -c "$(fetch -o - https://install.ohmyz.sh/)"`                                                 |
16+
17 _Note that any previous `.zshrc` will be renamed to `.zshrc.pre-oh-my-zsh`. After installation, you can move the configuration you want to preserve into the new `.zshrc`._
18 
19 #### Manual Inspection
20@@ -101,6 +109,8 @@ wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
21 sh install.sh
22 ```
23 
24+If the above URL times out or otherwise fails, you may have to substitute the URL for `https://install.ohmyz.sh` to be able to get the script.
25+
26 ## Using Oh My Zsh
27 
28 ### Plugins
29@@ -220,6 +230,8 @@ the default shell, and it also won't run `zsh` when the installation has finishe
30 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
31 ```
32 
33+If you're in China, India, or another country that blocks `raw.githubusercontent.com`, you may have to substitute the URL for `https://install.ohmyz.sh` for it to install.
34+
35 #### Installing From A Forked Repository
36 
37 The install script also accepts these variables to allow installation of a different repository: