Completion for vol command

This commit is contained in:
EmilySeville7cfg
2021-11-25 16:39:07 +10:00
committed by ridiculousfish
parent 8092d40cb7
commit 36eb310732

View File

@@ -0,0 +1,11 @@
function __vol_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 vol --no-files --arguments '(__vol_generate_args)'