summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-18 15:58:06 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-18 15:58:06 +0300
commit0acdc4e03231293327269b87aabc2d337ed474d0 (patch)
tree00ebdcf2d831af90c4fac153d53fa5f976636753
parent97d4e2877db2bb5e63479e2f987ce475a26d9d0a (diff)
Fixed another typo - shouldn't code when sick :p
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 5a322a57..1589cf3d 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -761,7 +761,7 @@ prompt_dir() {
cur_dir=$directory
dir_length=${#cur_dir}
local threshhold=$(( $POWERLEVEL9K_SHORTEN_DIR_LENGTH + ${#delim} ))
- if (( ( $dir_length > $threshhold )) && [[ ! $dir_length == $POWERLEVEL9K_SHORTEN_DIR_LENGTH && $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
+ if (( $dir_length > $threshhold )) && [[ $dir_length != $POWERLEVEL9K_SHORTEN_DIR_LENGTH && $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$delim
fi
cur_short_path+="$cur_dir/"