diff options
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-x | git-prompt.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index 89996d8..66abb07 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -182,7 +182,7 @@ cwd_truncate() { # arg1: max path lenght # returns abbrivated $PWD in public "cwd" var - cwd="${PWD/$HOME/~}" # substitute "~" + cwd="${PWD/$HOME/\~}" # substitute "~" case $1 in full) @@ -431,6 +431,7 @@ parse_git_status() { #git_dir="$( git rev-parse --git-dir 2> /dev/null)" [[ -n ${git_dir/./} ]] || return 1 + [[ -f ${git_dir}/git-prompt-ignored ]] && return 1 vcs=git |