Import from upstream git-prompt.sh: user-specific bash completion scripts

Source: 061dbfe92b
This commit is contained in:
David Refoua
2025-07-15 19:29:16 +03:30
committed by GitHub
parent abcb1a1aa1
commit cb76868411

13
vendor/git-prompt.sh vendored
View File

@ -71,4 +71,15 @@ else
PS1="$PS1"'λ ' # prompt: Cmder uses λ
fi
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
# Evaluate all user-specific Bash completion scripts (if any)
if test -z "$WINELOADERNOEXEC"
then
for c in "$HOME"/bash_completion.d/*.bash
do
# Handle absence of any scripts (or the folder) gracefully
test ! -f "$c" ||
. "$c"
done
fi