auto-ls
auto-ls copied to clipboard
No supporting for temporary disable auto-ls
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.
This is a great idea. I'd love to be able to only have the auto-ls on cwd but never on enter.
Would that be possible?