This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pretty hacky wrapper around __git_ps1 that checks directories in a blacklist | |
__git_maybe_ps1 () | |
{ | |
local cur_dir=$( basename $( pwd )) | |
local print_ps1='yes' | |
for black in ${GIT_PS1_BLACKLIST}; do | |
if [[ "${cur_dir}" == *${black}* ]]; then | |
print_ps1='no' | |
break; | |
fi |