diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-10-18 21:26:04 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-10-18 21:26:04 +0100 |
commit | 0edd762ec5f0b33e02fb6473dfea4e6fed54c498 (patch) | |
tree | d783a802c368af598f00f0f8e6f89d0421a00145 | |
parent | faddf59ec992776df9941dff2ae2b785562a9805 (diff) |
Add script to obtain password
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | .passwords | 0 | ||||
-rwxr-xr-x | bin/password | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index b713ac5..aa879dd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule ".urxvt/ext"] path = .urxvt/ext url = https://github.com/muennich/urxvt-perls +[submodule ".passwords"] + path = .passwords + url = https://github.com/uvaes/passwords diff --git a/.passwords b/.passwords new file mode 160000 +Subproject ebfe618e5197447046cb94996a1650d51d9bf40 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 |