Added rofi script for pass

This commit is contained in:
Thomas Kolb 2017-10-17 21:52:20 +02:00
parent 6795d6e105
commit 2cb6ae9545

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