From 2cb6ae9545c32f7f8daba10b7fc061b1b46d9b18 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Tue, 17 Oct 2017 21:52:20 +0200 Subject: [PATCH] Added rofi script for pass --- scripts/rofi-pass-simple.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/rofi-pass-simple.sh diff --git a/scripts/rofi-pass-simple.sh b/scripts/rofi-pass-simple.sh new file mode 100755 index 0000000..665c5c1 --- /dev/null +++ b/scripts/rofi-pass-simple.sh @@ -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