diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-29 15:36:15 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-29 15:36:15 +0100 |
commit | 0629f020498d97f71e8a46828803e4ff54aa6924 (patch) | |
tree | fec1adcd7aacb6f55daaaadb8a9c9f139e5a2933 /README.md | |
parent | da76c7dcbc9b52e881c864c7014dbf2a0aaf43b5 (diff) | |
parent | c03a462177bc2ec469a0cdb06234d08f35054966 (diff) | |
download | git-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.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |