1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

zsh: theme: fix minimal mode, add relative path indicator

This commit is contained in:
bretello 2024-08-12 19:30:35 +02:00
parent 90654028f0
commit 1bf1dc24b3
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

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