Skip to content

Commit cb76868

Browse files
authored
Import from upstream git-prompt.sh: user-specific bash completion scripts
Source: git-for-windows/build-extra@061dbfe
1 parent abcb1a1 commit cb76868

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

vendor/git-prompt.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,15 @@ else
7171
PS1="$PS1"'λ ' # prompt: Cmder uses λ
7272
fi
7373

74-
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
74+
MSYS2_PS1="$PS1" # for detection by MSYS2 SDK's bash.basrc
75+
76+
# Evaluate all user-specific Bash completion scripts (if any)
77+
if test -z "$WINELOADERNOEXEC"
78+
then
79+
for c in "$HOME"/bash_completion.d/*.bash
80+
do
81+
# Handle absence of any scripts (or the folder) gracefully
82+
test ! -f "$c" ||
83+
. "$c"
84+
done
85+
fi

0 commit comments

Comments
 (0)