mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Complete for md command
This commit is contained in:
parent
c3f928b2fa
commit
16c1850ae0
1 changed files with 11 additions and 0 deletions
11
share/completions/md.fish
Normal file
11
share/completions/md.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
function __md_generate_args --description 'Function to generate args'
|
||||
set --local current_token (commandline --current-token --cut-at-cursor)
|
||||
switch $current_token
|
||||
case '/*'
|
||||
echo -e '/?\tShow help'
|
||||
case '*'
|
||||
wmic logicaldisk get name | tail --lines +2
|
||||
end
|
||||
end
|
||||
|
||||
complete --command md --no-files --arguments '(__md_generate_args)'
|
Loading…
Reference in a new issue