Thursday, 8 August 2013

Node: Move the current directory of the interactive shell

Node: Move the current directory of the interactive shell

I'm writing a little CLI tool for Node.js. There are some situations where
I'd like to run modify the current directory of the shell that runs my
program:
some/location$ myProg moveToSomewhere
some/other/location$
child_process can't help here, since its commands run in a different shell.
Is there a way to do this?

No comments:

Post a Comment