/d support for cleanmgr command

This commit is contained in:
EmilySeville7cfg 2021-11-26 10:20:09 +10:00 committed by ridiculousfish
parent 656d3479dc
commit cd991d5936

View file

@ -1,7 +1,18 @@
complete --command cleanmgr --no-files --arguments '/d\t"Specify the drive that you want Disk Cleanup to clean" function __cleanmgr_generate_args --description 'Function to generate args'
/sageset\t"Display the Disk Cleanup Settings dialog box and also create a registry keyt" set --local previous_token (commandline --tokenize --cut-at-cursor)[-1]
/sagerun\t"Run the specified tasks that are assigned to the n value if you use the /sageset option"
/tuneup\t"Run /sageset and /sagerun for the same n" if test "$previous_token" = '/d'
/lowdisk\t"Run with the default settings" wmic logicaldisk get caption | sed --quiet '1b;/./p'
/verylowdisk\t"Run with the default settings, no user prompts" return
/?\t"Show help"' end
echo -e '/d\tSpecify the drive that you want Disk Cleanup to clean
/sageset\tDisplay the Disk Cleanup Settings dialog box and also create a registry keyt
/sagerun\tRun the specified tasks that are assigned to the n value if you use the /sageset option
/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_generate_args)'