fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge branch 'completions-to-use-expanded-tokens'a9618477e

master
835 B19 linesraw
1function __cleanmgr_complete_args -d 'Function to generate args'
2    set -l previous_token (commandline -xc)[-1]
3
4    if test "$previous_token" = /d
5        __fish_print_windows_drives
6        return
7    end
8end
9
10complete -c cleanmgr -f -a '(__cleanmgr_complete_args)'
11
12complete -c cleanmgr -f -a /d -d 'Specify the drive'
13complete -c cleanmgr -f -a /sageset \
14    -d 'Display the Disk Cleanup Settings dialog box and also create a registry key'
15complete -c cleanmgr -f -a /sagerun -d 'Run the specified tasks that are assigned to the n value'
16complete -c cleanmgr -f -a /tuneup -d 'Run /sageset and /sagerun for the same n'
17complete -c cleanmgr -f -a /lowdisk -d 'Run with the default settings'
18complete -c cleanmgr -f -a /verylowdisk -d 'Run with the default settings, no user prompts'
19complete -c cleanmgr -f -a '/?' -d 'Show help'