diff options
| author | Jack Jamison <53350163+JackJ30@users.noreply.github.com> | 2024-11-09 14:09:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-09 14:09:38 -0500 |
| commit | 2d4198da6a59e52278255d22e7aba394b3ce1688 (patch) | |
| tree | e16ab66261797c06580679daffc13ef1b6ffd0cb /scripts/git-ps1 | |
| parent | e70986a9c299f004aa290bde0ec430ca864f7e74 (diff) | |
| parent | ddd43ed96249932652c7427dbdbbac92e5ef49ed (diff) | |
Merge pull request #1 from JackJ30/laptop
Merge Laptop, it's my main workspace now
Diffstat (limited to 'scripts/git-ps1')
| -rwxr-xr-x | scripts/git-ps1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/git-ps1 b/scripts/git-ps1 new file mode 100755 index 0000000..0b860cd --- /dev/null +++ b/scripts/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" + |
