mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Clean-up md/rd completions:
- use __fish_list_windows_drives - hide dependent options
This commit is contained in:
parent
e22e8932a5
commit
1cd0726913
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue