mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
/d support for cleanmgr command
This commit is contained in:
parent
656d3479dc
commit
cd991d5936
1 changed files with 18 additions and 7 deletions
|
@ -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)'
|
Loading…
Reference in a new issue