mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +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 '/*'
|
case '/*'
|
||||||
echo -e '/?\tShow help'
|
echo -e '/?\tShow help'
|
||||||
case '*'
|
case '*'
|
||||||
wmic logicaldisk get name | tail --lines +2
|
__fish_list_windows_drives
|
||||||
end
|
end
|
||||||
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)
|
set --local current_token (commandline --current-token --cut-at-cursor)
|
||||||
switch $current_token
|
switch $current_token
|
||||||
case '/*'
|
case '/*'
|
||||||
|
if __fish_seen_argument --windows 's'
|
||||||
|
echo -e '/q\tSpecify quiet mode'
|
||||||
|
end
|
||||||
|
|
||||||
echo -e '/s\tDelete a directory tree
|
echo -e '/s\tDelete a directory tree
|
||||||
/q\tSpecify quiet mode
|
|
||||||
/?\tShow help'
|
/?\tShow help'
|
||||||
case '*'
|
case '*'
|
||||||
wmic logicaldisk get name | tail --lines +2
|
__fish_list_windows_drives
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue