Skip to content

Instantly share code, notes, and snippets.

@hrj
Created January 9, 2015 12:39
Show Gist options
  • Save hrj/024832c52c700e923127 to your computer and use it in GitHub Desktop.
Save hrj/024832c52c700e923127 to your computer and use it in GitHub Desktop.
shortcut for sha1sum and check
## call sha1sum and check whether the hash matches
## Syntax: sha1check <hash> <filename>
## Just copy paste the follow line into ~/.zshrc or ~/.bashrc
function sha1check() { echo $1 $2 | sha1sum -c; }
@hrj
Copy link
Author

hrj commented Jan 9, 2015

This is much better than manually eye-balling the hashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment