.profile: move passphrase2pgp variables into identity file

This commit is contained in:
dogeystamp 2023-06-13 15:31:38 -04:00
parent a3671a8b77
commit 8c7f9da7d4
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 7 additions and 6 deletions

View File

@ -17,9 +17,15 @@ cat << "EOF" > "$fields"
export ID_REALNAME=
export ID_EMAIL=
export ID_EMAIL_WORK=
export REALNAME=
export EMAIL=
export KEYID=
EOF
keepassxc-cli show "$KEEPASSDB" meta/identity -a realname -a email -a email-work | paste -d '' "$fields" - >> "$IDFILE"
keepassxc-cli show "$KEEPASSDB" meta/identity \
-a realname -a email -a email-work \
-a p2p-name -a p2p-email -a p2p-keyid \
| paste -d '' "$fields" - >> "$IDFILE"
rm "$fields"
cat << "EOF" >> "$IDFILE"

View File

@ -54,11 +54,6 @@ export MANWIDTH=165
export SB_DIR="$HOME"/med/sb
export SXHKD_SHELL='/bin/sh'
# Variables for passphrase2pgp
export REALNAME="dogeystamp"
export EMAIL="dogeystamp@disroot.org"
export KEYID="A3A5FA72F8E5E54FBEE425057225FE3592EFFA38"
export KEEPASSDB="$HOME"/dox/sec/pass.kdbx
# Identity (see ~/.local/bin/identity.sh)
if [ -r "$XDG_CONFIG_HOME"/identity ]; then