diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-07-17 20:11:36 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-07-17 20:11:36 +0300 |
commit | 17ee7f96373b335c3a22fa2a80e717ef320f8c77 (patch) | |
tree | ce73483388ab19c9435862ee5d8da1eede827d99 /git-prompt.sh | |
parent | finished nodups (diff) | |
download | git-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.tar.gz git-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.tar.bz2 git-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.zip |
fixed: cwd_truncate
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 6a202b0..50ef573 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -180,7 +180,7 @@ cwd_truncate() { # trunc middle if over limit - if [[ $(( ${#path_middle} > $cwd_middle_max + ${#elipses_marker} + 5 )) ]]; then + if [[ ${#path_middle} -gt $(( $cwd_middle_max + ${#elipses_marker} + 5 )) ]]; then # truncate middle_tail=${path_middle:${#path_middle}-${cwd_middle_max}} |