dd per shell git opt out

This commit is contained in:
Dax T. Games
2019-11-23 11:54:53 -05:00
parent 3eb82d4095
commit 2428e8529f
4 changed files with 16 additions and 10 deletions

View File

@ -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