forked from tadfisher/pass-otp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a subset of tadfisher#151, only implementing the most relevant completion (see tadfisher#118), i.e. completing password names.
- Loading branch information
Milan Oberkirch
committed
Jan 6, 2024
1 parent
a364d2a
commit b473a24
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env fish | ||
|
||
source "/usr/share/fish/vendor_completions.d/pass.fish" | ||
|
||
complete -c $PROG -f -n '__fish_pass_needs_command' -a otp -d 'Command: Generate an OTP code' | ||
complete -c $PROG -f -n '__fish_pass_uses_command otp' -s c -l clip -d 'Put otp code in clipboard' | ||
complete -c $PROG -f -n '__fish_pass_uses_command otp' -a "(__fish_pass_print_entries)" |