Add an sh(1) reimplementation of passmenu - localbin - leot's localbin (~/bin)
 (HTM) hg clone https://bitbucket.org/iamleot/localbin
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 506f1c5d55bdef37555ddeb7bc4c8652351f693a
 (DIR) parent 2d6d8c264a6ab0c99305d93f24e8e514aa89c87a
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon,  3 Jun 2019 13:53:15 
       
       Add an sh(1) reimplementation of passmenu
       
       Diffstat:
        passmenu |  22 ++++++++++++++++++++++
        1 files changed, 22 insertions(+), 0 deletions(-)
       ---
       diff -r 2d6d8c264a6a -r 506f1c5d55bd passmenu
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/passmenu  Mon Jun 03 13:53:15 2019 +0200
       @@ -0,0 +1,22 @@
       +#!/bin/sh
       +
       +#
       +# Reimplementation of passmenu script in portable sh(1).
       +# `--type' option is always assumed (i.e. xdotool is always used to type
       +# the password)
       +#
       +
       +password_store_dir=${PASSWORD_STORE_DIR:-~/.password-store}
       +
       +password_name=$(find ${password_store_dir} -name '*.gpg' |
       +   sed -e "s;^${password_store_dir};;" -e 's;^/;;' -e 's;\.gpg$;;' |
       +   sort |
       +   dmenu)
       +
       +if [ -z "${password_name}" ]; then
       +       exit 1
       +fi
       +
       +{ printf "type --clearmodifiers -- " ;
       +  pass show "${password_name}" | head -n 1 ; } |
       +    xdotool -