Often times I've typed in a bunch of commands when I realize that I am going to keep typing them in and that I would really like a script.
Now I understand that no matter how I save my history, I am going to have to edit it to clean things up, but would like to hear suggestions on how to save my history so that it is close to a usable script.