Reset terminal environment to start up state, not losing print of history
One option for resetting the Terminal session's state except for history is to save the current history to a temp file with something like history -w ~/.history_temp, then close the Terminal window, open a new one, then read back the saved history with history -w ~/.history_temp. Optionally, you can delete the temp history file when you're done.

If you don't want to have to remember &amp; type those commands every time, you can create aliases for them and put those in ~/.bash_profile:

alias savehistory='history -w ~/.history_temp`
alias loadhistory='history -r ~/.history_temp &amp;&amp; rm ~/.history_temp`