Migrate ZX2C4 pass to MacOSX
… or how to migrate your pass keys softly Source 1for FOLDER in $HOME/.password-store $HOME/.gnupg ; do 2 rsync -arv --delete ${FOLDER}/ macosx:${FOLDER}/; 3done Target 1brew install gnupg pass pinentry 2gpg --list-key toto@perdu.com # ensure that gpg email user is the same as git email user 3git config --global --edit # ensure that gpg email user is the same as git email user 4 5cat<<\EOF>>$HOME/.bash_profile 6[[ -f ~/.bashrc ]] && source ~/.bashrc 7EOF 8 9cat<<\EOF>>$HOME/.bashrc 10eval "$(/opt/homebrew/bin/brew shellenv 2>/dev/null)" 11# password-store completion 12for COMPLETION in /opt/homebrew/etc/bash_completion.d/* ; do 13 source $COMPLETION 2>/dev/null; 14done 15 16[[ -z $(pgrep gpg-agent) ]] && gpg-agent --pinentry-program=/opt/homebrew/bin/pinentry-tty --daemon # for password-store 17EOF Sources ZX2C4 Pass Documentation