don’t type source .bash_history in shell

Just wanted to mention that typing the following in shell/bash/terminal is bad:

source .bash_history

A geek might ask “why would you type that?!” well that’s a good question but I meant to type the following:

source .bashrc

So, it was bad, and executed a lot of commands… all the commands in my bash history to be specific. Ugh. So unless you feel like executing every shell command in your history, don’t do this.

One thought on “don’t type source .bash_history in shell”

Leave a Reply

Your email address will not be published. Required fields are marked *