Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cd): use process.env.OLDPWD to store previous dir #383

Merged
merged 1 commit into from
Mar 5, 2016

Conversation

nfischer
Copy link
Member

@nfischer nfischer commented Mar 5, 2016

This should be a simple refactor. This uses process.env.OLDPWD to store the previous directory (used by cd -), instead of a separate variable as we had it. It's a little closer to bash's semantics if we use process.env, since now people can run echo(env.OLDPWD) and see a useful result.

@ariporad
Copy link
Contributor

ariporad commented Mar 5, 2016

LGTM!

ariporad added a commit that referenced this pull request Mar 5, 2016
refactor(cd): use process.env.OLDPWD to store previous dir
@ariporad ariporad merged commit 3e441e4 into master Mar 5, 2016
@nfischer nfischer deleted the cd-use-env-var branch April 2, 2016 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants