Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
Created November 8, 2017 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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