mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
Fixed home abbreviation not being exclusive with circular navigation
This commit is contained in:
parent
afb7387abe
commit
a761e3c28a
1 changed files with 3 additions and 1 deletions
|
@ -809,7 +809,9 @@ prompt_dir() {
|
||||||
current_path="${cur_short_path: : -1}"
|
current_path="${cur_short_path: : -1}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if [[ $current_path != "~" ]]; then
|
||||||
current_path="$(print -P "%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:$POWERLEVEL9K_SHORTEN_DELIMITER/:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c")"
|
current_path="$(print -P "%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:$POWERLEVEL9K_SHORTEN_DELIMITER/:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c")"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue