mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:28:58 +08:00
Completion for vol command
This commit is contained in:
parent
8092d40cb7
commit
36eb310732
11
share/completions/vol.fish
Normal file
11
share/completions/vol.fish
Normal 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)'
|
Loading…
Reference in New Issue
Block a user