2022-01-24 05:51:09 +00:00
|
|
|
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'
|
2022-01-24 06:04:36 +00:00
|
|
|
__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
|
|
|
|
|
2022-01-24 05:51:09 +00:00
|
|
|
complete --command cleanmgr --no-files --arguments '(__cleanmgr_complete_args)'
|