Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
Created November 8, 2017 16:35
Show Gist options
  • Save andrewpmiller/2fb42ff574d6116e1466bc24b23882b2 to your computer and use it in GitHub Desktop.
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.
# 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