cd-path completion
The idea is to display all possible destinations for the c command, i.e. display all folders located in the $env.CDPATH variable's elements on TAB.
Like it works with cd but instead of just ls --all $env.PWD | where $it.type == dir, do it in each CDPATH-ed location.
I'll be playing with it in my spare time, just posting it here to discuss the concept, implementation and maybe to inspire someone :)
what is $env.CDPATH? I don't see it on Mac. Not sure about Windows.
what is
$env.CDPATH? I don't see it on Mac. Not sure about Windows.
It's a variable needed to be provided by user for cdpath.nu to work. Not a default one but required by the script. Example usage is in the comment in the script source
ok, I get it now. thanks.
I did this in #644 (except for c ~ which I could not figure out)