Skip to content

Instantly share code, notes, and snippets.

@lynsei
Created January 8, 2025 17:21
Show Gist options
  • Save lynsei/d9fbc83a5001909b4dabe312b6615e05 to your computer and use it in GitHub Desktop.
Save lynsei/d9fbc83a5001909b4dabe312b6615e05 to your computer and use it in GitHub Desktop.
[fish] gpg version2 functions
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