aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-11-21 19:00:27 -0300
committerEuAndreh <eu@euandre.org>2020-11-21 19:00:27 -0300
commit919da13c4eb516c1f26eef4c46860863159871eb (patch)
tree42123a77af5759af46270b8666d9bc251fdada14 /bash
parentagents.sh: Remove gpg debug.gpg (diff)
downloaddotfiles-919da13c4eb516c1f26eef4c46860863159871eb.tar.gz
dotfiles-919da13c4eb516c1f26eef4c46860863159871eb.tar.xz
ps1.sh: Print only current branch
Diffstat (limited to 'bash')
-rw-r--r--bash/ps1.sh2
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