diff --git a/fish/.config/fish/functions/gt.fish b/fish/.config/fish/functions/gt.fish new file mode 100644 index 0000000..3d4556b --- /dev/null +++ b/fish/.config/fish/functions/gt.fish @@ -0,0 +1,10 @@ +function gt --description "Get TOTP token with pass-otp" + if type -qf pass + pass ls totp | fzf --ansi | sed 's/[^a-zA-Z0-9]//g' | read -l result + if test -n "$result" + pass otp -c totp/$result + end + else + echo "pass is not installed" + end +end