git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/postexec.bash
diff options
context:
space:
mode:
Diffstat (limited to '.bash/postexec.bash')
-rw-r--r--.bash/postexec.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/.bash/postexec.bash b/.bash/postexec.bash
index 564356a..6137814 100644
--- a/.bash/postexec.bash
+++ b/.bash/postexec.bash
@@ -6,3 +6,10 @@ if [ -n "$SSHENVFILE" ] && [ -r "$SSHENVFILE" ];then
fi
fi
fi
+for gitpsrc in "/usr/share/git/git-prompt.sh" "/usr/local/share/git/git-prompt.sh" \
+ "/usr/share/git-completion/prompt.sh" "/usr/local/share/git-completion/prompt.sh"; do
+ if [ -r "$gitpsrc" ]; then
+ source "$gitpsrc"
+ break
+ fi
+done