mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Completions for cmdkey command
This commit is contained in:
parent
9de5e1918f
commit
76e200e3f5
21
share/completions/cmdkey.fish
Normal file
21
share/completions/cmdkey.fish
Normal file
|
@ -0,0 +1,21 @@
|
|||
function __cmdkey_generate_args --description 'Function to generate args'
|
||||
if not __fish_seen_argument --windows 'add' --windows 'generic'
|
||||
echo -e '/add\tAdd a user name and password to the list
|
||||
/generic\tAdd generic credentials to the list'
|
||||
end
|
||||
|
||||
if not __fish_seen_argument --windows 'smartcard' --windows 'user'
|
||||
echo -e '/smartcard\tRetrieve the credential from a smart card
|
||||
/user:\tSpecify the user or account name to store with this entry'
|
||||
end
|
||||
|
||||
if __fish_seen_argument --windows 'user'
|
||||
echo -e '/pass\tSpecify the password to store with this entry'
|
||||
end
|
||||
|
||||
echo -e '/delete\tDelete a user name and password from the list
|
||||
/list:\tDisplay the list of stored user names and credentials
|
||||
/?\tShow help'
|
||||
end
|
||||
|
||||
complete --command cmdkey --no-files --arguments '(__cmdkey_generate_args)'
|
Loading…
Reference in New Issue
Block a user