diff options
Diffstat (limited to 'bin/password')
-rwxr-xr-x | bin/password | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/password b/bin/password new file mode 100755 index 0000000..b0415e3 --- /dev/null +++ b/bin/password @@ -0,0 +1,5 @@ +#! /bin/bash +PWD_DIR="$HOME/dotfiles/.passwords" +PASSWORDS=$(locate "$PWD_DIR/**/*.gpg") +TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Decode password:") +gpg --use-agent --quiet --batch -d $PWD_DIR/$TARGET | xclip -i |