aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-17 17:39:39 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-17 17:39:39 +0300
commit29620f3d8187a6160950289dda72bb30bf040873 (patch)
tree554a4586d36b0d8d9f704020e02a67687030ae9c /powerlevel9k.zsh-theme
parentad4b284e56244842c69e5e99aac4d5626c10a542 (diff)
Accidentally deleted )) which threw an error
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 4abee3b4..0c7292a3 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 && [[ $cur_dir != $paths[${#paths}] ]]; then
+ if (( ${#cur_dir} > $POWERLEVEL9K_SHORTEN_DIR_LENGTH )) && [[ $cur_dir != $paths[${#paths}] ]]; then
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$POWERLEVEL9K_SHORTEN_DELIMITER
fi
cur_short_path+="$cur_dir/"