Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incompatibility with an exported $CDPATH, fixes magicmonty#501
Because gitprompt.sh uses command cd to find __GIT_PROMPT_DIR it breaks if $CDPATH is used and exported. * Add unset CDPATH
- Loading branch information
Wouldn't this mean, that when
gitprompt.sh
is sourced, after sourcing the script theCDPATH
would be gone? I guess this should not happen, should it? Can you maybe think of another solution without removing the CDPATH?