summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2009-07-17 20:11:36 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2009-07-17 20:11:36 +0300
commit17ee7f96373b335c3a22fa2a80e717ef320f8c77 (patch)
treece73483388ab19c9435862ee5d8da1eede827d99 /git-prompt.sh
parentfinished nodups (diff)
downloadgit-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.tar.gz
git-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.tar.bz2
git-prompt-17ee7f96373b335c3a22fa2a80e717ef320f8c77.zip
fixed: cwd_truncate
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh2
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}}