Created
November 8, 2017 16:35
-
-
Save andrewpmiller/2fb42ff574d6116e1466bc24b23882b2 to your computer and use it in GitHub Desktop.
did? - if you think you did it, you can be more or less sure(r) now.
This file contains 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
# did: Search the command history for what you did before | |
did() { | |
history | grep $@ |grep -Ev "grep" | grep -Ev "did" | sed 's/\(.\{7\}\)//'| sort -u | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment