Last active
March 15, 2020 00:08
-
-
Save whoo/6c867f793376ca6b8db61fe426d58298 to your computer and use it in GitHub Desktop.
Pass | Password manager cmdline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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