fish-shell/share/functions/rd.fish

17 lines
461 B
Fish
Raw Normal View History

2021-11-26 02:19:07 +00:00
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
2021-11-26 02:19:07 +00:00
echo -e '/s\tDelete a directory tree
/?\tShow help'
case '*'
__fish_list_windows_drives
2021-11-26 02:19:07 +00:00
end
end
complete --command rd --no-files --arguments '(__rd_generate_args)'