summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/otpqrcode3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/otpqrcode b/.local/bin/otpqrcode
new file mode 100755
index 0000000..383bb7e
--- /dev/null
+++ b/.local/bin/otpqrcode
@@ -0,0 +1,3 @@
+#!/bin/sh
+zbarimg -q --raw "${1:?I require a qr code image file name}" |
+ pass otp insert "${2:?I require a pass name to store the otp secret}"