mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:32:27 +08:00
Clean-up md/rd completions:
- use __fish_list_windows_drives - hide dependent options
This commit is contained in:
parent
e22e8932a5
commit
1cd0726913
|
@ -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 New Issue
Block a user