mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Clean-up md/rd completions:
- use __fish_list_windows_drives - hide dependent options
This commit is contained in:
committed by
ridiculousfish
parent
e22e8932a5
commit
1cd0726913
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user