I want use a command such as this :
which node && cd $_
to jump in the directory when the binary file reside, but the which command return all the path + name of binary ,so i get an error :
bash: cd: node: No such file or directory
I'm looking for new command move me in the right place.
cd =node(:h)
(you only need the--
here if you have a relative directory starting with-
or+
in your PATH). – Gilles 'SO- stop being evil' Aug 29 '15 at 16:32