yk-cli/scripts/yk.fish
2021-01-07 14:34:33 -05:00

11 lines
366 B
Fish

# Disable file completions
complete -c yk -f
# Add completion for setting password
complete -c yk -a set-password -d "Set authentication password"
# Add completion of credentials
complete -c yk -a "(yk list)" -d "Credential to get TOTP for"
function yk-copy --description "Select a credential using fzf and copy it to clipboard"
yk (yk list | fzf) | pbcopy
end