Created
November 3, 2014 22:30
-
-
Save josephabrahams/b42524b017dc3857ee32 to your computer and use it in GitHub Desktop.
Delete previous line in .bash_history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
hist=$(history | tail -1 | awk '{ print $1 }'); history -d $hist; history -d $(expr $hist - 1); unset hist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment