Add shared bin
This commit is contained in:
parent
a94b794c76
commit
7436e52200
9 changed files with 58 additions and 0 deletions
13
bin/passget
Executable file
13
bin/passget
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue