My first video post here. Go easy on me.
Easily go back the previous directory you accessed in the terminal with this simple bash alias.
🔥 Literally the best dev tip of the day, I use it all the time.
- to go back to prev directory
✅ Add this alias to your .bashrc/.zshrc files
♻️ Reload your terminal
alias -- -="cd -"