diff --git a/share/functions/rd.fish b/share/functions/rd.fish new file mode 100644 index 000000000..2abc8d5ea --- /dev/null +++ b/share/functions/rd.fish @@ -0,0 +1,13 @@ +function __rd_generate_args --description 'Function to generate args' + set --local current_token (commandline --current-token --cut-at-cursor) + switch $current_token + case '/*' + echo -e '/s\tDelete a directory tree +/q\tSpecify quiet mode +/?\tShow help' + case '*' + wmic logicaldisk get name | tail --lines +2 + end +end + +complete --command rd --no-files --arguments '(__rd_generate_args)'