New passmenu option to type username and copy password

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Mon Apr 24 17:38:55 CEST 2017


Den 14. april 2017 23:04, skreiv John Gliksberg:
> Subject: [PATCH 3/3] [passmenu] Remove bashisms
> 
> None of this is a big deal, and bash is used throughout pass,
> but this script can be easily debashified.

> -prefix=${PASSWORD_STORE_DIR-~/.password-store}
> -password_files=( "$prefix"/**/*.gpg )
> -password_files=( "${password_files[@]#"$prefix"/}" )
> -password_files=( "${password_files[@]%.gpg}" )
> +prefix="${PASSWORD_STORE_DIR:-"$HOME/.password-store"}"
>  
> -password=$(printf '%s\n' "${password_files[@]}" | dmenu)
> +password=$(find "$prefix" -type f -name '*.gpg' -printf '%P\n' \
> +           | sed 's/\.gpg$//' | dmenu)

replacing bashisms with an (undocumented) reliance on GNU find (-printf)
isn't a good idea IMHO.


-- 
Kjetil T. Homme
Redpill Linpro - Changing the game

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170424/2c1a06b3/attachment.asc>


More information about the Password-Store mailing list