mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 06:37:54 +08:00
dd per shell git opt out
This commit is contained in:
4
vendor/git-prompt.sh
vendored
4
vendor/git-prompt.sh
vendored
@ -1,7 +1,7 @@
|
||||
function getGitStatusSetting() {
|
||||
gitStatusSetting=$(git config cmder.status 2>/dev/null)
|
||||
gitStatusSetting=$(git --no-pager config -l 2>/dev/null)
|
||||
|
||||
if [[ -n ${gitStatusSetting} ]] && [[ ${gitStatusSetting} == false ]]
|
||||
if [[ -n ${gitStatusSetting} ]] && [[ ${gitStatusSetting} =~ cmder.status=false ]] || [[ ${gitStatusSetting} =~ cmder.shstatus=false ]]
|
||||
then
|
||||
echo false
|
||||
else
|
||||
|
Reference in New Issue
Block a user