3 ms·
Also: Accidentally ran `cd`? Run `cd -` to return I think there are some pop/push mechanics for working directory too, but I can't find them right now.
by lfowles 12y ago
Also: Accidentally ran `cd`? Run `cd -` to return
I think there are some pop/push mechanics for working directory too, but I can't find them right now.
- spike021 12y agoOh handy! Hadn't come across that before. Thanks.
- GauntletWizard 12y agoThe commands are pushd and popd, and they're bash (and zsh, and most sane shell) builtins. Pushd to get to a new directory, popd to go back to the last one on the stack.
- OlivierLi 12y agoTip : Setting cd as an alias for pushd make the whole thing much more intuitive.