aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-06-13 18:27:25 +1000
committerYuchen Pei <id@ypei.org>2024-06-13 18:27:25 +1000
commit93abde3cd97332647aad0ac3e1ece1f92af46ce6 (patch)
tree537155c27bc39efc404c329e8c570d3842c24784
parent162b814567ec1bcca8be5f8cc050423fbea6fe7a (diff)
[bash] Account for another path of git-prompt.sh
-rw-r--r--misc/.bashrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/.bashrc b/misc/.bashrc
index 8d64a41..4f337ca 100644
--- a/misc/.bashrc
+++ b/misc/.bashrc
@@ -28,6 +28,8 @@ if [[ -f /usr/share/git/completion/git-prompt.sh ]]; then
source /usr/share/git/completion/git-prompt.sh
elif [[ -f /etc/bash_completion.d/git-prompt ]]; then
source /etc/bash_completion.d/git-prompt
+elif [[ -f /usr/share/git-core/contrib/completion/git-prompt.sh ]]; then
+ source /usr/share/git-core/contrib/completion/git-prompt.sh
fi
# prompt