Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
abathur
on Dec 31, 2019
|
parent
|
context
|
favorite
| on:
What Is the Most Valuable Thing You Can Learn in O...
It's not as robust as pushd/popd, and it may vary from shell to shell, but at least in bash you can also use "cd -" to change to the previous directory.
jcelerier
on Dec 31, 2019
[–]
pro tip : you can also do the same with git : "git checkout -" will bring you to the previous commit you were on
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: