diff --git a/themes/brethil.zsh-theme b/themes/brethil.zsh-theme index f074c69..e65dedf 100644 --- a/themes/brethil.zsh-theme +++ b/themes/brethil.zsh-theme @@ -26,11 +26,12 @@ else shlvl_prompt="%(3L.%K{161}%F{255}%B $((SHLVL-1)) %f%b%k.)" fi -# Shows last 3 items in path if there are more than 4 -if [[ -n $DOTFILES_MINIMAL ]]; then +if [[ -z $DOTFILES_MINIMAL ]]; then + # shows last 3 path components if more than 4 components are present local path_prompt='[%F{green}%(4~:…/%3~:%~)%f]' else - local path_prompt='[%F{green}%c%f]' + # shows last component of the path + local path_prompt='[%F{green}./%c%f]' fi