Added test for root based folder to first&last

pull/22/head
Christo Kotze 7 years ago
parent 3674af1cd9
commit 99e62532bb

@ -766,7 +766,8 @@ prompt_dir() {
for (( i=$POWERLEVEL9K_SHORTEN_DIR_LENGTH; i<$num; i++ )); do for (( i=$POWERLEVEL9K_SHORTEN_DIR_LENGTH; i<$num; i++ )); do
paths[$i+1]=$POWERLEVEL9K_SHORTEN_DELIMITER paths[$i+1]=$POWERLEVEL9K_SHORTEN_DELIMITER
done done
current_path="${(j:/:)paths}" [[ $current_path ~= '~'* ]] && current_path="/" || current_path=""
current_path+="${(j:/:)paths}"
fi fi
fi fi
;; ;;

Loading…
Cancel
Save