From 17ee7f96373b335c3a22fa2a80e717ef320f8c77 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Fri, 17 Jul 2009 20:11:36 +0300 Subject: fixed: cwd_truncate --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-prompt.sh') 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}} -- cgit v1.2.3