Created
March 28, 2016 00:08
-
-
Save jkup/ce7f7f66a1788a54ea62 to your computer and use it in GitHub Desktop.
Change Directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const process = require('process') | |
process.chdir('/foo') | |
console.log(process.cwd()) // This logs foo | |
// but then if I run this my terminal doesn't change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment