From 164ea811ce4dfa14e833ec08919be35274aef8d4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 22 Apr 2022 23:09:11 +0200 Subject: [PATCH] typo --- .config/zsh/themes/prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/themes/prompt.zsh b/.config/zsh/themes/prompt.zsh index 42c4280..88bd11e 100644 --- a/.config/zsh/themes/prompt.zsh +++ b/.config/zsh/themes/prompt.zsh @@ -103,7 +103,7 @@ function _shrunkpwd() # Maybe shorten all elements but the first and last local -a short_dir=(${(s:/:)dir}) - local -i allowed_element_width=$(( ${max_width} / ${#short_dir} -1 )) + local -i allowed_element_width=$(( ${max_width} / ${#short_dir} - 1 )) for index in {2..$(( ${#short_dir} - 1 ))}; do if [[ ${#short_dir[index]} -gt ${allowed_element_width} ]] && \ [[ ${#${(j:/:)short_dir}} -gt ${max_width} ]]; then