diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-03-01 14:38:58 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-03-01 14:38:58 +0000 |
commit | 56fa6951bccc312b24b3766c38c0e49e64a796fb (patch) | |
tree | 190aff9438b6e86b5b1a744afbc478ac3e983325 /bin | |
parent | a6e466a9947d8319dc1e5b1b7a9cf405c84166f1 (diff) |
Merge 'username' and 'passwords' scripts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bin/password | 7 | ||||
-rwxr-xr-x | bin/bin/username | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bin/bin/password b/bin/bin/password index f94379a..ffcbb7e 100755 --- a/bin/bin/password +++ b/bin/bin/password @@ -1,2 +1,7 @@ #!/usr/bin/env bash -passmenu + +# Username in primary, password in clipboard + +target=$(find "$HOME/.password-store/" -name "*.gpg" -printf "%P\\n" | dmenu -i -p "Get identifier for:") +basename "$target" .gpg | xclip -i -selection "primary" +pass show --clip "${target%.gpg}" diff --git a/bin/bin/username b/bin/bin/username deleted file mode 100755 index b124733..0000000 --- a/bin/bin/username +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -target=$(find $HOME/.password-store/ -name "*.gpg" -printf "%P\n" | dmenu -i -p "Get identifier for:") -basename $target .gpg | xclip -i |