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.
dotfiles/common/fish/pass-otp-completions.fish

5 lines
293 B
Fish
Raw Permalink Normal View History

2022-03-16 00:16:55 -05:00
#!/usr/bin/env fish
complete -c pass -f -n '__fish_pass_needs_command' -a otp -d 'Command: show TOTP code'
complete -c pass -f -n '__fish_pass_uses_command otp' -s c -l clip -d 'Put TOTP code in clipboard'
complete -c pass -f -n '__fish_pass_uses_command otp' -a "(__fish_pass_print_entries)"