diff options
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-x | git-prompt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index d8d6e2f..54a1690 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -165,7 +165,7 @@ cwd_truncate() { return ;; *) - if [[ ${BASH_VERSINFO[0]} -ge 3 && ${BASH_VERSINFO[1]} -ge 2 ]] ; then + if [[ ${BASH_VERSINFO[0]} -ge 3 && ${BASH_VERSINFO[1]} -ge 2 || ${BASH_VERSINFO[0]} -gt 3 ]] ; then local cwd_max_length=$1 else # if bash < v3.2 then don't truncate |