Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created July 13, 2011 17:30
Show Gist options
  • Save thinkerbot/1080814 to your computer and use it in GitHub Desktop.
Save thinkerbot/1080814 to your computer and use it in GitHub Desktop.
Setup bash history
cat > histfile <<DOC
echo a
echo b
echo c
DOC
# run a new shell to clear out history artifacts
sh
history -cr histfile
!1
!2
!3
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment