Open mr-salty opened 5 years ago
While at it, consider fixing another bug in truncate_with_folder_marker
. It doesn't respect POWERLEVEL9K_DIR_PATH_ABSOLUTE
. That is, if you set POWERLEVEL9K_DIR_PATH_ABSOLUTE=true
and POWERLEVEL9K_SHORTEN_STRATEGY=truncate_with_folder_marker
, you'll get two kinds of unexpected behavior:
~
in the prompt instead of the absolute path to the home directory.
Describe Your Issue
What is happening? using the truncate_with_folder_marker strategy produced incorrect results under
$HOME
.The first issue is, in a subdirectory of $HOME with no folder marker, an extra tilde is produced (
~~/xxx
).In a subdirectory of a directory with a folder marker, the directory with the folder marker gets duplicated (
~/xxx~/xxx/yyy
)Have you tried to debug or fix it?
I have a PR (#1271) to fix the first issue; I will also try to fix the second issue
Environment Information
This information will help us understand your configuration.
What version of ZSH are you using? You can use
zsh --version
to see this. zsh 5.5 (x86_64-debian-linux-gnu)Do you use a ZSH framework (e.g., Oh-My-ZSH, Antigen)? oh-my-zsh
How did you install P9k (cloning the repo, by tarball, a package from your OS, etc.,)? cloning the repo
What version of P9k are you using? 0.6.7
Which terminal emulator do you use? gnome-terminal