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:
parent
90654028f0
commit
1bf1dc24b3
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user