summaryrefslogtreecommitdiffstats
path: root/prompt.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-11 16:47:32 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-11 16:47:32 +0100
commit284a88a8607cc7077aec376ca5f4b0c1b7e12c70 (patch)
tree237150deb61f42fb6cc676353794add5072da176 /prompt.sh
parent1f3b218b5cf79a414344b465cbb75af726721649 (diff)
downloadgit-sonar-284a88a8607cc7077aec376ca5f4b0c1b7e12c70.tar.gz
git-sonar-284a88a8607cc7077aec376ca5f4b0c1b7e12c70.zip
Provide a bash way to show remote commits
Diffstat (limited to 'prompt.sh')
-rwxr-xr-xprompt.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/prompt.sh b/prompt.sh
index a1ffbbd..4501575 100755
--- a/prompt.sh
+++ b/prompt.sh
@@ -1,5 +1,6 @@
-source ./git-base.sh
+dot="$(cd "$(dirname "$0")"; pwd)"
+source "$dot/git-base.sh"
-prompt="$(branch_name)$(bash_color_local_commits)$(bash_color_changes_status)"
+prompt="$(bash_color_remote_commits)$(branch_name)$(bash_color_local_commits)$(bash_color_changes_status)"
echo $prompt