1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-17 21:30:07 +00:00

used set_default-function instead

This commit is contained in:
Niklas Heer 2015-12-31 19:04:26 +01:00
parent f472ba7341
commit 3441f750bf

View file

@ -407,13 +407,7 @@ prompt_dir() {
local current_path='%~'
if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" ]]; then
if [ -z "$POWERLEVEL9K_SHORTEN_DELIMITER" ]
then
POWERLEVEL9K_SHORTEN_DELIMITER=".."
elif [ "$POWERLEVEL9K_SHORTEN_DELIMITER" = false ]
then
POWERLEVEL9K_SHORTEN_DELIMITER=""
fi
set_default POWERLEVEL9K_SHORTEN_DELIMITER ".."
case "$POWERLEVEL9K_SHORTEN_STRATEGY" in
truncate_middle)