diff options
Diffstat (limited to 'scripts/system/git-ps1')
| -rwxr-xr-x | scripts/system/git-ps1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/system/git-ps1 b/scripts/system/git-ps1 new file mode 100755 index 0000000..0b860cd --- /dev/null +++ b/scripts/system/git-ps1 @@ -0,0 +1,9 @@ +#!/bin/sh +out=$(git branch --show-current 2>/dev/null) +if [ -z "$out" ] ; then + out="" +else + out="($out) " +fi +echo -n "$out" + |
