1
0
Fork 0

Add shared bin

This commit is contained in:
Jeremy Kaplan 2017-12-04 22:12:32 -08:00
commit 7436e52200
9 changed files with 58 additions and 0 deletions

13
bin/passget Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if [[ -z "$1" ]]; then
echo 'Nothing to get'
exit 1
fi
contents=$(gopass show $1) || exit 1
echo "$contents" | grep '^user:' | cut -d' ' -f2 | xsel -b
echo 'Username clipped'
read
gopass show --clip $1