summaryrefslogtreecommitdiff
path: root/scripts/system/git-ps1
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
commit1c58ccb7855719483490abe1982afa12b0488f24 (patch)
treed6d6f95477c743c1e2e8f4a64095d50cb491338c /scripts/system/git-ps1
parentfbe17d51cc2d52261721a46ee54d5dc8f32db3eb (diff)
refactor and battery notifier
Diffstat (limited to 'scripts/system/git-ps1')
-rwxr-xr-xscripts/system/git-ps19
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"
+