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.
I use this plugin for quite a while and I like it terribly, especially hit
enterto 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 runsource test.sh; ./test.shit will unexpectly show ls .I noticed your plugin has the
AUTO_LS_CHPWDvariant, and it's used just for initial binding tochpwd_function.So I'm just wondering whether you could try to modify the script, and check this variant every time invoked.