cd2
is a tiny handy tool for working with multiple console windows at a time. When called, it displays a list of all working directories of your running terminals and lets you choose one by simply entering a number. If you enter nothing it takes you to the last entry listed which makes a good default behavior. This way, when you open a new terminal window and type cd2
and press enter twice you can continue in the same wd as your other bash
.
To install for your user simply run:
curl https://gist.githubusercontent.com/bxt/3804080/raw/install | bash
or manually perform the steps of the script.
Open a terminal and cd
to some other directory. Then open another terminal and type cd2
. You will see an output like this:
03:59 bxt@cindy:~> cd2
1 /home/bxt
2 /home/bxt/bin
3 /home/bxt/some-other-dir
Press enter to go tho the last directory in the list, type any number and press enter to go to that directory.
Just basic tools like awk
and lsof
. Currently only tested with bash
, feel free to comment if or not this works for you in other shells.