summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-17 19:42:35 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-17 19:42:35 +0300
commit728aa0ec387ab12644f905b5b88cc5638b9da810 (patch)
tree38d87888b47c2be5c27db3333730431b8240a01e
parentb73af072c1b0dd4bce84185c5374054e5dcb70df (diff)
Updated previous test as Travis still fails
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index ecca1f38..c6c17c86 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -758,7 +758,7 @@ prompt_dir() {
for directory in ${paths[@]}
do
cur_dir=$directory
- if (( ${#cur_dir} > $POWERLEVEL9K_SHORTEN_DIR_LENGTH + ${#POWERLEVEL9K_SHORTEN_DELIMITER} )) && [[ $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
+ if (( ${#cur_dir} > ( $POWERLEVEL9K_SHORTEN_DIR_LENGTH + ${#POWERLEVEL9K_SHORTEN_DELIMITER} ) )) && [[ $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$POWERLEVEL9K_SHORTEN_DELIMITER
fi
cur_short_path+="$cur_dir/"