diff options
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 |