Created
January 8, 2025 17:21
-
-
Save lynsei/d9fbc83a5001909b4dabe312b6615e05 to your computer and use it in GitHub Desktop.
[fish] gpg version2 functions
This file contains hidden or 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
function .gpg.key.create --description 'GPG: Create a key' | |
gpg --full-gen-key | |
end | |
function .gpg.key.export --description 'GPG Key Export' --argument email filename | |
gpg -a --export $email > "$filename.pub.key" | |
gpg -a --export-secret-keys $email > "$filename.secret.key" | |
end | |
function .gpg.key.list --description 'List GPG Keys' | |
gpg --list-secret-keys --keyid-format LONG | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment