This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/usr/bin/env fish
|
|
|
|
set entry $argv[1]
|
|
set otp_secret (pass $entry | awk -F': ' '/^otp/{gsub(/\s/,"",$2);print $2}')
|
|
set otp_uri "otpauth://totp/totp-secret?secret=$otp_secret&issuer=$entry"
|
|
echo $otp_uri | pass otp append $entry
|