diff options
| author | EuAndreh <eu@euandre.org> | 2020-11-21 19:00:27 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-11-21 19:00:27 -0300 |
| commit | 919da13c4eb516c1f26eef4c46860863159871eb (patch) | |
| tree | 42123a77af5759af46270b8666d9bc251fdada14 /bash | |
| parent | agents.sh: Remove gpg debug.gpg (diff) | |
| download | dotfiles-919da13c4eb516c1f26eef4c46860863159871eb.tar.gz dotfiles-919da13c4eb516c1f26eef4c46860863159871eb.tar.xz | |
ps1.sh: Print only current branch
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 |
