Complete for md command

This commit is contained in:
EmilySeville7cfg 2021-11-26 12:11:47 +10:00 committed by ridiculousfish
parent c3f928b2fa
commit 16c1850ae0

11
share/completions/md.fish Normal file
View 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)'