diff --git a/themes/jonathan.zsh-theme b/themes/jonathan.zsh-theme index e8c490884..2ea23fa4e 100644 --- a/themes/jonathan.zsh-theme +++ b/themes/jonathan.zsh-theme @@ -7,6 +7,7 @@ function theme_precmd { local promptsize=${#${(%):---(%n@%m:%l)---()--}} local rubypromptsize=${#${(%)$(ruby_prompt_info)}} local pwdsize=${#${(%):-%~}} + pwdsize=$(($pwdsize * 3 - ${#${(ml[$pwdsize * 2])${(%):-%~}}})) # Truncate the path if it's too long. if (( promptsize + rubypromptsize + pwdsize > TERMWIDTH )); then