[pass] [PATCH][FEATURE] password-store.sh: added option for quick password showing

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Wed May 27 16:34:40 CEST 2015


On 26/05/2015 09:04, cyberxndr . wrote:
> This code provides a quick way to retrieve one password from the tree. I
> would like to know is whether or not it is accepted.
> 
> 2015-05-13 13:35 GMT+03:00 cyberxndr:
> 
>     diff --git a/password-store/src/password-store.sh
>     b/password-store-feature/src/password-store.sh
>     index 47f7ffa..d5f6a59 100755
>     --- a/password-store/src/password-store.sh
>     +++ b/password-store-feature/src/password-store.sh
>     @@ -223,9 +223,10 @@ cmd_usage() {
>                     List passwords.
>                 $PROGRAM find pass-names...
>                     List passwords that match pass-names.
>     -           $PROGRAM [show] [--clip,-c] pass-name
>     +           $PROGRAM [show] [--clip,-c] [--exclusive,-e] pass-name
>                     Show existing password and optionally put it on the clipboard.
>                     If put on the clipboard, it will be cleared in $CLIP_TIME seconds.
>     +               Optionally, entry can contain * wildcard for quickly exclusive passwords.
>                 $PROGRAM grep search-string
>                     Search for password files containing search-string when decrypted.
>                 $PROGRAM insert [--echo,-e | --multiline,-m] [--force,-f] pass-name
>     @@ -294,12 +295,13 @@ cmd_init() {
>      }

speaking just for myself, I find --exclusive a misleading/confusing name
for this option.  I think it would be better to just make this the
default behaviour, no option needed.

suggested updated usage.  I leave the implementation to someone else :-)

  $PROGRAM [show] [--clip,-c] pass-name
      Show existing password and optionally put it on the clipboard.
      If put on the clipboard, it will be cleared in $CLIP_TIME seconds.
      Pass-name can contain wildcards (*) or be a substring.  If it
      matches uniquely, operate on that password file.

-- 
regards,
Kjetil T. Homme


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


More information about the Password-Store mailing list