Added rofi script for pass

This commit is contained in:
Thomas Kolb 2017-10-17 21:52:20 +02:00
parent 6795d6e105
commit 2cb6ae9545
1 changed files with 13 additions and 0 deletions

13
scripts/rofi-pass-simple.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
if [ ! -z "$PASSWORD_STORE_DIR" ]; then
cd "$PASSWORD_STORE_DIR"
else
cd "$HOME/.password-store"
fi
if [ -z $@ ]; then
find -name \*.gpg | sed 's/\.\/\(.*\)\.gpg/\1/'
else
nohup pass show -c "$@" >/dev/null &
fi