mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: theme: fix minimal mode, add relative path indicator
This commit is contained in:
parent
90654028f0
commit
1bf1dc24b3
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user