Re:Evolution of shells in Linux (2011)
by oxplot on Wednesday August 24, 2016 @07:28AM
(#12351214)
Learnt new commands: pushd and popd
[ Parent
| on HN ]
zsh can be configured so the cd command automatically becomes a pushd. This is such a huge improvement to me I stuck with it. (Fish has a similar feature, except it supports pushd/popd additionally.) (Maybe bash supports this, too, I have not used it much in the last couple of years.)
Interestingly, even cmd.exe on Windows (at least on Windows 7 and newer) supports pushd/popd.
The same can be done easily in bash with an alias:
alias cd=pushd
Re:Evolution of shells in Linux (2011)
by unsignedqword on Wednesday August 24, 2016 @03:01PM
(#12354399)
pushd/popd have been on it since Windows 2000