summaryrefslogtreecommitdiffstats
path: root/files/.bin/oath
diff options
context:
space:
mode:
Diffstat (limited to 'files/.bin/oath')
-rwxr-xr-xfiles/.bin/oath14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/.bin/oath b/files/.bin/oath
new file mode 100755
index 0000000..7444993
--- /dev/null
+++ b/files/.bin/oath
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3if [[ $1 ]]; then
4 PASS=$(oathtool -b --totp $(pass show "oath/$1"))
5 printf $PASS | wl-copy
6 echo "pass: $PASS"
7 echo "Password should be in your clipboard!"
8else
9 echo "Usage: oath <pass>"
10 echo "Available pass:"
11 pass oath
12fi
13
14