Clean-up md/rd completions:

- use __fish_list_windows_drives
- hide dependent options
This commit is contained in:
EmilySeville7cfg 2021-11-26 19:29:54 +10:00 committed by ridiculousfish
parent e22e8932a5
commit 1cd0726913
2 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ function __md_generate_args --description 'Function to generate args'
case '/*'
echo -e '/?\tShow help'
case '*'
wmic logicaldisk get name | tail --lines +2
__fish_list_windows_drives
end
end

View File

@ -2,11 +2,14 @@ function __rd_generate_args --description 'Function to generate args'
set --local current_token (commandline --current-token --cut-at-cursor)
switch $current_token
case '/*'
if __fish_seen_argument --windows 's'
echo -e '/q\tSpecify quiet mode'
end
echo -e '/s\tDelete a directory tree
/q\tSpecify quiet mode
/?\tShow help'
case '*'
wmic logicaldisk get name | tail --lines +2
__fish_list_windows_drives
end
end