mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-18 05:29:45 +08:00
Import from upstream git-prompt.sh: user-specific bash completion scripts
Source: 061dbfe92b
This commit is contained in:
11
vendor/git-prompt.sh
vendored
11
vendor/git-prompt.sh
vendored
@ -72,3 +72,14 @@ else
|
|||||||
fi
|
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
|
Reference in New Issue
Block a user