diff options
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/ps1.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/ps1.sh b/bash/ps1.sh index 01bd72ff..2593e056 100644 --- a/bash/ps1.sh +++ b/bash/ps1.sh @@ -15,7 +15,7 @@ path() { } repo-status() { - branch="$(git branch --format='%(refname:short)' 2> /dev/null)" + branch="$(git branch --show-current 2> /dev/null)" if [ "$branch" != '' ]; then OUT="$(env LANG=en_US.UTF-8 git status)" if ! git diff --quiet &> /dev/null || ! git diff --staged --quiet &> /dev/null; then |
