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

[Bugfix] Fix extra tilde when using truncate_with_folder_marker under $HOME #1271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 14, 2019

  1. Fix extra tilde when using truncate_with_folder_marker under $HOME

    truncate_with_folder_marker adds a tilde when it finds HOME, but
    POWERLEVEL9K_HOME_FOLDER_ABBREVIATION is also prepended, so if you're
    in a subdirectory of $HOME you get an extra tilde (although this does not
    occur if you're actually in $HOME)
    
    Without the change, the new test I added fails:
    ```
    testHomeWithFolderMarkerWorks
    ASSERT:expected:<%K{004} %F{000}~/powerlevel9k-test %k%F{004}%f > but was:<%K{004} %F{000}~~/powerlevel9k-test %k%F{004}%f >
    ```
    mr-salty committed May 14, 2019
    Configuration menu
    Copy the full SHA
    6aae321 View commit details
    Browse the repository at this point in the history