[pass] [PATCH 2/2] clip: add GPaste support

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Thu Feb 5 16:04:40 CET 2015


On 2015-02-04 09:26, Dahlberg, David wrote:
> Am Dienstag, den 03.02.2015, 17:47 +0100 schrieb Marc-Antoine Perennou:
> 
>>>> diff --git a/src/password-store.sh b/src/password-store.sh
> [..]
>>>> +       which gpaste &>/dev/null && gpaste help | grep password
>> &>/dev/null && gpaste=1
> 
> Pardon my Evolutions bad quoting :-(

(looks good to me?)

> I do not know gpaste, nor can I easily apply patches in my current
> setup, but may I suggest "grep -q password" instead of "grep password
> &>/dev/null"?

is GNU grep a requirement already?

btw, I think you could just as well skip which(1) (see previous rant
about which from me on this list :-) and do

  (gpaste help | grep password) &>/dev/null && gpaste=1

if gpaste doesn't exist, no harm is done.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3772 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150205/ce1a9ac0/attachment.p7s>


More information about the Password-Store mailing list