configs/zsh: add mkhash function for generating hashes

This commit is contained in:
Aaron Bieber 2023-06-07 07:51:09 -06:00
parent a1ccf2ff46
commit 776533f374
No known key found for this signature in database

View File

@ -45,6 +45,10 @@
go mod tidy
}
mkhash() {
nix hash to-sri --type sha256 $(nix-prefetch-url --type sha256 "$1")
}
k() {
''${K_DEBUG}
if [ -z $1 ]; then