home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

authkey (203B)


      1 #!/usr/bin/env bash
      2 set -e
      3 oathtool --hotp $(cat ~/.oath/key) -c $([ ! -f ~/.oath/counter ] && echo -n 0 > ~/.oath/counter || echo -n $(($(cat ~/.oath/counter)+1)) > ~/.oath/counter; cat ~/.oath/counter)