mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 13:41:56 +00:00
Backport @wrboyce fix for truncating dir with package name from #1158
This commit is contained in:
parent
613b798bb3
commit
3057e8fc07
1 changed files with 2 additions and 0 deletions
|
@ -905,6 +905,8 @@ prompt_dir() {
|
||||||
package_path=${$(pwd)%%/.git*}
|
package_path=${$(pwd)%%/.git*}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ ${(L)POWERLEVEL9K_DIR_PATH_ABSOLUTE} != "true" ]] && package_path=${package_path/$HOME/"~"}
|
||||||
|
|
||||||
# Replace the shortest possible match of the marked folder from
|
# Replace the shortest possible match of the marked folder from
|
||||||
# the current path. Remove the amount of characters up to the
|
# the current path. Remove the amount of characters up to the
|
||||||
# folder marker from the left. Count only the visible characters
|
# folder marker from the left. Count only the visible characters
|
||||||
|
|
Loading…
Reference in a new issue