2 ms·
How have you ported ncd to Linux? The cd command only works as a shell built in, otherwise it can’t change the shells current directory.
by tinus_hn 5y ago
How have you ported ncd to Linux? The cd command only works as a shell built in, otherwise it can’t change the shells current directory.
- vidarh 5y agoThe obvious way would be to either implement it as a shell function or to use a small wrapper function that calls out to script which returns the new desired directory and then cd's to that.
- deeg 5y agoI've set up an alias to source my script (xd.sh) like: alias xd=. xd.sh Sourcing the script allows it to change the current directory.
- _hyn3 5y agoHave you open sourced this anywhere? Sounds extremely useful!