Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in _hydro_pwd #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Commits on Apr 17, 2023

  1. Fix bugs in _hydro_pwd

    There were a couple of bugs in the implementation of _hydro_pwd
    which caused path to be rendered incorrectly:
    
    - if there is a parent directory named the same way as git root, it will
        be "highlighted" instead of the actual git root.
        For example, if you are in `/foo/repo/bar/repo/baz` and the second
        `repo` is git root, the first one will be highlighted.
    
    - if you are in directory named `:` (but not in git repo) it will not be shown.
        For example, if you are in `/tmp/:` you will see `/t/` instead of `/t/:`.
    
    - if one of your parent directories is `:` and you are in git repo,
        the name of the repo will be shown instead of `:`.
        For example, if you are in `/foo/:/bar/repo/baz` you will see
        `/f/repo/b/r/baz` instead of `/f/:/b/repo/baz`.
    
    - if `fish_prompt_pwd_dir_length` is set to `0` and one of the parent
        directories starts with dot, the directory shown will start with dot.
        For example, if you are in `/home/me/.config/fish` you will see
        `.fish` instead of `fish`.
    
    - if you are in a directory that looks like your home directory but isn't,
        it will be replaced with `~`.
        For example, if you are in `/tmp/home/me` you will see `/tmp~`.
    blt-r committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    dc77fe5 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Configuration menu
    Copy the full SHA
    eb80b44 View commit details
    Browse the repository at this point in the history