summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-03-22 00:07:04 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-22 00:09:39 -0600
commit142c42c7deee22014fea54eb2ff37972a6ee23f5 (patch)
treeaf3ac817c7ab3c45bc05e884b49817c68d9d2af5 /src/password-store.sh
parent9be03f7601428c68a40bd457c000329e2ad41314 (diff)
downloadpass-142c42c7deee22014fea54eb2ff37972a6ee23f5.tar.gz
pass-142c42c7deee22014fea54eb2ff37972a6ee23f5.tar.bz2
pass-142c42c7deee22014fea54eb2ff37972a6ee23f5.zip
clip: use pkill instead of proc
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index e9ba4f0..f35a17b 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -117,7 +117,7 @@ clip() {
# we're going with this for now.
sleep_argv0="password store sleep on display $DISPLAY"
- kill -9 $(grep -l -r --include="cmdline" "^$sleep_argv0" /proc/ 2>/dev/null | sed -n 's:/proc/\([0-9]\+\)/.*:\1:p' | sort | uniq) 2>/dev/null && sleep 0.1
+ pkill -f "^$sleep_argv0" && sleep 0.1
before="$(xclip -o -selection "$SELECTION" | base64)"
echo -n "$1" | xclip -selection "$SELECTION"
(
eletions'>-57/+0 2014-04-24Don't prompt for questions when stdin is not a tty.Jason A. Donenfeld3-7/+6 2014-04-24Allow overridable bash.Jason A. Donenfeld16-16/+16 2014-04-24dmenu: check for empty instead of ret codeJason A. Donenfeld1-1/+1 2014-04-24tests: sed doesn't like escaped chars on non-gnuJason A. Donenfeld1-1/+1 2014-04-24tests: run from anywhereJason A. Donenfeld13-4/+16 2014-04-24Turns out aliases were a bad idea.Jason A. Donenfeld14-95/+92 2014-04-24Make gpg_opts an array.Jason A. Donenfeld1-12/+12 2014-04-24Shellcheck errors.Jason A. Donenfeld1-6/+6 2014-04-24tests: todo updateJason A. Donenfeld1-25/+0