Skip to content

Home directory ~ substitution is not bound to beginning of path #65

@pdc1

Description

@pdc1

If you have a home directory of e.g. /root and cd to /tmp/root, the path is shown as /tmp~.

The fix is to change

string replace --ignore-case -- ~ \~ $PWD

to something like:

string replace --ignore-case --regex -- (string join "" "^" ~) \~ $PWD

The string join seems to be needed to concatenate the ^ with the expanded ~.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions