We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d085f commit 304b8c7Copy full SHA for 304b8c7
vendor/git-prompt.sh
@@ -5,9 +5,9 @@ function getGitStatusSetting() {
5
# Get all git config entries for the current repository without pager
6
gitConfig=$(git --no-pager config -l 2>/dev/null) || return 0 # treat failure as enabled
7
8
- # Check if git status for Cmder is disabled
9
- if [[ $gitConfig =~ (^|$'\n')cmder\.status=false($|$'\n') ]] || \
10
- [[ $gitConfig =~ (^|$'\n')cmder\.shstatus=false($|$'\n') ]]
+ # Check if git status display for Cmder is disabled via config
+ # Matches: cmder.status=false or cmder.shstatus=false (Bash-specific)
+ if [[ $gitConfig =~ (^|$'\n')cmder\.(sh)?status=false($|$'\n') ]]
11
then
12
return 1 # disabled
13
fi
0 commit comments