13 lines
399 B
Bash
Executable File
13 lines
399 B
Bash
Executable File
#!/usr/bin/env -S bash -i
|
|
|
|
echo "--- Grabbing GPG Passpharse from Bitwarden to clipboard"
|
|
rbw get "GPG Passphrase" | xclip -selection clipboard
|
|
|
|
echo "--- Importing private/public key"
|
|
rbw get "GPG Private/Pub Key (Ariejan)" | gpg --import
|
|
|
|
echo "--- Setting key trust"
|
|
gpg --list-keys --fingerprint --with-colons |
|
|
sed -E -n -e 's/^fpr:::::::::([0-9A-F]+):$/\1:6:/p' |
|
|
gpg --import-ownertrust
|