summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-18 23:35:35 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-18 23:35:35 +0100
commit2f4f10e312a0767a96c654937d7a4706ff60ce0e (patch)
treeb4b580c8b48cd9641bdd585a1a7be326290e6032
parent592f945518231a63f330bb473079b827435920f8 (diff)
downloadgit-sonar-2f4f10e312a0767a96c654937d7a4706ff60ce0e.tar.gz
git-sonar-2f4f10e312a0767a96c654937d7a4706ff60ce0e.zip
Provide single entrypoint to make scriping easier
-rwxr-xr-xprompt12
1 files changed, 12 insertions, 0 deletions
diff --git a/prompt b/prompt
new file mode 100755
index 0000000..bce4480
--- /dev/null
+++ b/prompt
@@ -0,0 +1,12 @@
+#! /usr/bin/env bash
+
+dot="$(cd "$(dirname "$0")"; pwd)"
+
+command="$1"
+
+if [[ "$command" == "--zsh" ]]; then
+ $dot/prompt.zsh
+fi
+if [[ "$command" == "--bash" || "$command" == "" ]]; then
+ $dot/prompt.bash
+fi