3 ms·
I think `pass` has an official extension to handle OTP, but here is how I do it: #/bin/bash clip $(oathtool -b --totp "$(pass show otp/$1 | head -n 1)")
by war1025 6y ago
I think `pass` has an official extension to handle OTP, but here is how I do it:
#/bin/bash
clip $(oathtool -b --totp "$(pass show otp/$1 | head -n 1)")
Basically there is a really handy utility called `oathtool` you can install that has all the one time password logic built into it.
Then in my `pass` store I have a `otp` folder where I put the codes for my different services.
So to get the OTP code for paypal for example, I do this:
pass otp paypal
And then the code is copied to my clipboard and I can just paste it.