summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-29 15:36:15 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-29 15:36:15 +0100
commit0629f020498d97f71e8a46828803e4ff54aa6924 (patch)
treefec1adcd7aacb6f55daaaadb8a9c9f139e5a2933 /README.md
parentda76c7dcbc9b52e881c864c7014dbf2a0aaf43b5 (diff)
parentc03a462177bc2ec469a0cdb06234d08f35054966 (diff)
downloadgit-sonar-0629f020498d97f71e8a46828803e4ff54aa6924.tar.gz
git-sonar-0629f020498d97f71e8a46828803e4ff54aa6924.zip
Merge pull request #29 from reinaldo13/issue-17
issue-17: Add arguments to make the prompt shorter
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0a90a6e..61ae983 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,19 @@ Prompt | Meaning
![git:(m 4 → my-branch)] | There are 4 commits on `origin/master` that aren't on `origin/my-branch`
![git:(m 1 ⇄ 2 my-branch)] | `origin/master` and `origin/my-branch` have diverged, we'll need to rebase or merge
+If you don't rely on this status, you can always hide this part of the prompt by calling git-radar with `--no-remote-status`.
+
+**Bash**
+```bash
+export PS1="$PS1\$(git-radar --bash --fetch --no-remote-status) "
+```
+(note: the `\` escaping the `$` is important)
+
+**Zsh**
+```zsh
+export PROMPT="$PROMPT$(git-radar --zsh --fetch --no-remote-status) "
+```
+
### (Optional) Auto-fetch repos
Ensuring your refs are up to date I found can be a pain. To streamline this