fish-shell/share/completions/cleanmgr.fish

19 lines
674 B
Fish
Raw Normal View History

function __cleanmgr_complete_args --description 'Function to generate args'
2021-11-26 00:20:09 +00:00
set --local previous_token (commandline --tokenize --cut-at-cursor)[-1]
if test "$previous_token" = '/d'
__fish_print_windows_drives
2021-11-26 00:20:09 +00:00
return
end
2021-12-15 22:03:02 +00:00
echo -e '/d\tSpecify the drive
2021-11-26 00:20:09 +00:00
/sageset\tDisplay the Disk Cleanup Settings dialog box and also create a registry keyt
2021-12-15 22:03:02 +00:00
/sagerun\tRun the specified tasks that are assigned to the n value
2021-11-26 00:20:09 +00:00
/tuneup\tRun /sageset and /sagerun for the same n
/lowdisk\tRun with the default settings
/verylowdisk\tRun with the default settings, no user prompts
/?\tShow help'
end
complete --command cleanmgr --no-files --arguments '(__cleanmgr_complete_args)'