aboutsummaryrefslogtreecommitdiff
path: root/gitstatus/README.md
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-15 19:06:30 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-15 19:06:30 +0300
commitbf0255931b1c67126f8b66a1105ab821e0a250bd (patch)
treee902c9a10fd28d3dece582303ea446b90e8de27a /gitstatus/README.md
parent9f33d6567bf835c84b717f3c3251ef576e61b065 (diff)
parentff18dbaf74beb38f9e0721558f2c66552b5862a4 (diff)
Merge commit 'ff18dbaf74beb38f9e0721558f2c66552b5862a4'
Diffstat (limited to 'gitstatus/README.md')
-rw-r--r--gitstatus/README.md24
1 files changed, 22 insertions, 2 deletions
diff --git a/gitstatus/README.md b/gitstatus/README.md
index aa63eec5..014b4e67 100644
--- a/gitstatus/README.md
+++ b/gitstatus/README.md
@@ -35,6 +35,16 @@ git clone --depth=1 https://github.com/romkatv/gitstatus.git ~/gitstatus
echo 'source ~/gitstatus/gitstatus.prompt.zsh' >>! ~/.zshrc
```
+Alternatively, on macOS you can install with Homebrew:
+
+```zsh
+brew install romkatv/gitstatus/gitstatus
+echo 'source /usr/local/opt/gitstatus/gitstatus.prompt.zsh' >>! ~/.zshrc
+```
+
+(If you choose this option, replace `~/gitstatus` with `/usr/local/opt/gitstatus` in all code
+snippets below.)
+
_Make sure to disable your current theme if you have one._
This will give you a basic yet functional prompt with git status in it. It's
@@ -118,6 +128,16 @@ git clone --depth=1 https://github.com/romkatv/gitstatus.git ~/gitstatus
echo 'source ~/gitstatus/gitstatus.prompt.sh' >> ~/.bashrc
```
+Alternatively, on macOS you can install with Homebrew:
+
+```zsh
+brew install romkatv/gitstatus/gitstatus
+echo 'source /usr/local/opt/gitstatus/gitstatus.prompt.sh' >> ~/.bashrc
+```
+
+(If you choose this option, replace `~/gitstatus` with `/usr/local/opt/gitstatus` in all code
+snippets below.)
+
This will give you a basic yet functional prompt with git status in it. It's
[over 10x faster](#benchmarks) than any alternative that can give you comparable prompt.
@@ -479,7 +499,7 @@ new versions are released.*
```zsh
# Download and extract gitstatus tarball.
-gitstatus_version=1.0.0 # IMPORTANT: CHANGE VERSION TO WHAT YOU WANT
+gitstatus_version=1.1.0 # IMPORTANT: CHANGE VERSION TO WHAT YOU WANT
wget https://github.com/romkatv/gitstatus/archive/v"$gitstatus_version".tar.gz
tar -xzf v"$gitstatus_version".tar.gz
cd gitstatus-"$gitstatus_version"
@@ -508,7 +528,7 @@ libgit2 tarball manually and invoke `./build` without `-w`.
```zsh
# Download and extract gitstatus tarball.
-gitstatus_version=1.0.0 # IMPORTANT: CHANGE VERSION TO WHAT YOU WANT
+gitstatus_version=1.1.0 # IMPORTANT: CHANGE VERSION TO WHAT YOU WANT
wget https://github.com/romkatv/gitstatus/archive/v"$gitstatus_version".tar.gz
tar -xzf v"$gitstatus_version".tar.gz
cd gitstatus-"$gitstatus_version"