diff options
Diffstat (limited to '.local/bin/ghauth')
-rwxr-xr-x | .local/bin/ghauth | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/ghauth b/.local/bin/ghauth new file mode 100755 index 0000000..15f39a1 --- /dev/null +++ b/.local/bin/ghauth @@ -0,0 +1,8 @@ +#/bin/bash + +[[ "x${TERMUX_VERSION}" == "x" ]] && PIPE_CMD='xclip -selection clipboard' || PIPE_CMD='cat -' + +gpg --pinentry-mode loopback --decrypt --quiet "${HOME}/.2fa/justanothercatgirl@github.com/.key" | oathtool --totp -b - | ${PIPE_CMD} + + + |