Skip to content

No supporting for temporary disable auto-ls  #16

Description

@AndrewLauu

I use this plugin for quite a while and I like it terribly, especially hit enter to ls. Thx for you work!

However, in my daily usage, I found it not supporting temporarily disable, especially when source and run other rcfile or .sh file containing cd.
e.g. I have a test.sh: fun() { cd ~ } and run source test.sh; ./test.sh it will unexpectly show ls .

I noticed your plugin has the AUTO_LS_CHPWD variant, and it's used just for initial binding to chpwd_function.

if [[ ${AUTO_LS_CHPWD} == true && ${chpwd_functions[(I)auto-ls]} -eq 0 ]]; then
  chpwd_functions+=(auto-ls)
fi

So I'm just wondering whether you could try to modify the script, and check this variant every time invoked.

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