Skip to content

Instantly share code, notes, and snippets.

@whoo
Last active March 15, 2020 00:08
Show Gist options
  • Save whoo/6c867f793376ca6b8db61fe426d58298 to your computer and use it in GitHub Desktop.
Save whoo/6c867f793376ca6b8db61fe426d58298 to your computer and use it in GitHub Desktop.
Pass | Password manager cmdline
#!/bin/bash
echo -e "\033[1;32m [ReInit Vault with keys : (gpg.id)] \033[0m"
for a in $(cat ~/.password-store/.gpg-id)
do
echo -ne "\033[1;33m * \033[0m"
gpg --list-keys $a | grep uid | grep @ | head -n 1 | cut -c 26-
done
pass init $(cat .gpg-id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment