summaryrefslogtreecommitdiff
path: root/scripts/git-ps1~
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-ps1~')
-rw-r--r--scripts/git-ps1~9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/git-ps1~ b/scripts/git-ps1~
new file mode 100644
index 0000000..22093d4
--- /dev/null
+++ b/scripts/git-ps1~
@@ -0,0 +1,9 @@
+#!/bin/sh
+out=$(git branch --show-current)
+if [ -z "$out" ] then
+ out-""
+else
+ out="($out)"
+fi
+echo -n "($out)"
+ \ No newline at end of file