mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
Completion for rd command
This commit is contained in:
parent
16c1850ae0
commit
71f43c5fda
1 changed files with 13 additions and 0 deletions
13
share/functions/rd.fish
Normal file
13
share/functions/rd.fish
Normal file
|
@ -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)'
|
Loading…
Reference in a new issue