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 148d502 commit 5cd7e35Copy full SHA for 5cd7e35
gitprompt.sh
@@ -10,6 +10,7 @@ function git_prompt_dir() {
10
# assume the gitstatus.sh is in the same directory as this script
11
# code thanks to http://stackoverflow.com/questions/59895
12
if [[ -z "${__GIT_PROMPT_DIR:+x}" ]]; then
13
+ unset CDPATH
14
local SOURCE="${BASH_SOURCE[0]}"
15
while [[ -h "${SOURCE}" ]]; do
16
local DIR="$( command cd -P "$( dirname "${SOURCE}" )" && pwd )"
0 commit comments