We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7e4005 + 134219e commit 3b81bd0Copy full SHA for 3b81bd0
README.md
@@ -110,10 +110,9 @@ cd ~
110
git clone https://github.com/ogr3/bash-git-prompt.git .bash-git-prompt --depth=1
111
```
112
113
-Add to the `~/.bashrc`:
+Add to the `~/.bashrc`:
114
115
GIT_PROMPT_THEME=TruncatedPwd_WindowTitle
116
- GIT_PROMPT_ONLY_IN_REPO=1
117
source ~/.bash-git-prompt/gitprompt.sh
118
119
gitstatus_pre-1.7.10.sh
@@ -58,7 +58,7 @@ remote=
58
upstream=
59
60
if [[ -z "$branch" ]]; then
61
- tag=$( git describe --branch --exact-match 2>/dev/null )
+ tag=$( git describe --tags --exact-match 2>/dev/null )
62
if [[ -n "$tag" ]]; then
63
branch="$tag"
64
else
0 commit comments