Quick way to switch between folders in the terminal

A couple of days ago a found a really neat trick you can use when you are in the terminal window.

cd -

It will move you from the directory you were in to the directory you were in last, typing it again will bring you back to that first directory.

Recent posts View all

Mac

Quickly create gifs from movs in the command line

How to quickly take your .mov files and turn them into .gif

Ruby

Removing unused Trix Editor buttons

How to quickly remove unused Trix Editor buttons