Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

POWERLEVEL9K_SHORTEN_STRATEGY="truncate_with_folder_marker" produces incorrect results under $HOME #1272

@mr-salty

Description

@mr-salty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions