git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/postexec.bash
diff options
context:
space:
mode:
authormail_redacted_for_web 2024-07-14 09:59:33 +0200
committermail_redacted_for_web 2024-07-14 09:59:33 +0200
commit8faef2071a0dd0358714b082738dbc253378214a (patch)
tree9298d10d1ca349bcff373fc791746651a210b360 /.bash/postexec.bash
parent9b850221308f64fe6e641555fcbd24ddf5a7ff7b (diff)
downloaddotfiles-8faef2071a0dd0358714b082738dbc253378214a.tar.bz2
inclusion of git prompt
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