pushd popd dirs
Snippet
Written with a loving hand by kitt some time around 12:55 on 11 February 2019
# push a directory onto the stack pushd {dir} # pop the last directory off the stack, change to the next directory in the stack popd # view the stack in a numbered list dirs -v # pull the nth directory out of the stack, put it at the top, and change to it pushd +n # remove the nth directory from the stack, don't change to it or anything popd +n
Add new comment