|
|
|
@ -414,6 +414,9 @@ prompt_dir() {
|
|
|
|
|
truncate_from_right)
|
|
|
|
|
current_path=$(pwd | sed -e "s,^$HOME,~," | sed $SED_EXTENDED_REGEX_PARAMETER "s/([^/]{$POWERLEVEL9K_SHORTEN_DIR_LENGTH})[^/]+\//\1..\//g")
|
|
|
|
|
;;
|
|
|
|
|
truncate_fish_like)
|
|
|
|
|
current_path=$(pwd | sed -e "s,^$HOME,~," | sed $SED_EXTENDED_REGEX_PARAMETER "s/([^/]{$POWERLEVEL9K_SHORTEN_DIR_LENGTH})[^/]+\//\1\//g")
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
current_path="%$((POWERLEVEL9K_SHORTEN_DIR_LENGTH+1))(c:.../:)%${POWERLEVEL9K_SHORTEN_DIR_LENGTH}c"
|
|
|
|
|
;;
|
|
|
|
|