fork/fish-shell

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

Johannes AltmanningerPrepare to not localize private function descriptionsd835c5252

master
2.1 KiB39 linesraw
1# localization: tier3
2function __fish_complete_lpr -d 'Complete lpr common options' --argument-names cmd
3    complete -c $cmd -s E -d 'Forces encryption when connecting to the server'
4    complete -c $cmd -s U -d 'Specifies an alternate username' -xa '(__fish_complete_users)'
5
6    switch $cmd
7        case lpr lpq lprm
8            complete -c $cmd -s P -d 'Specifies an alternate printer or class name' -xa '(__fish_print_lpr_printers)'
9    end
10
11    switch $cmd
12        case lpq cancel
13            complete -c $cmd -s a -d 'Apply command to all printers'
14    end
15
16    switch $cmd
17        case lpq cancel lpmove lpstat lprm lpoptions lp reject accept cupsaccept cupsreject cupsenable cupsdisable
18            complete -c $cmd -s h -d 'Specifies an alternate server' -xa '(__fish_print_hostnames)'
19    end
20
21    switch $cmd
22        case lp lpr
23            complete -c $cmd -s m -d 'Send an email on job completion'
24
25            complete -c $cmd -s o -xa landscape -d 'Landscape mode'
26            complete -c $cmd -s o -xa "media=a4 media=letter media=legal" -d 'Media size'
27            complete -c $cmd -s o -xa page-ranges= -d 'Page ranges'
28            complete -c $cmd -s o -xa orientation-requested= -d 'Choose orientation (4-landscape)'
29            complete -c $cmd -s o -xa 'sides-one-sided two-sided-long-edge two-sided-short-edge' -d 'Choose between one/two sided modes'
30            complete -c $cmd -s o -xa fitplot -d 'Scale the print file to fit on the page'
31            complete -c $cmd -s o -xa 'number-up=2 number-up=4 number-up=6 number-up=9' -d 'Print multiple document pages on each output page'
32            complete -c $cmd -s o -xa 'scaling=' -d 'Scale image files to use up to number percent of the page'
33            complete -c $cmd -s o -xa 'cpi=' -d 'Set the number of characters per inch to use'
34            complete -c $cmd -s o -xa 'lpi=' -d 'Set the number of lines per inch to use'
35            complete -c $cmd -s o -xa 'page-bottom= page-left= page-right= page-top=' -d 'Set the page margins when printing text files'
36            # this must be last
37            complete -c $cmd -s o -d 'Sets a job option' -xa '(__fish_complete_lpr_option)'
38    end
39end