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)
~ > POWERLEVEL9K_SHORTEN_STRATEGY="truncate_with_folder_marker"
~ > mkdir -p xxx/yyy/zzz
~ > touch xxx/.shorten_folder_marker
~ > cd xxx
~~/xxx > cd yyy
~/xxx~/xxx/yyy > cd zzz
~/xxx~/xxx/yyy/zzz >
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