blob: 796a20902a2377e2396a762ada2488b08f22dd4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# tuxpaint(1) completion
# put this file in /etc/bash_completion.d/
# Bill Kendrick <bill@newbreedsoftware.com>; http://www.tuxpaint.org/
# Based on inkscape's completion file, by allali@univ-mlv.fr
#
# $Id: tuxpaint-completion.bash,v 1.3 2011/05/27 21:14:15 perepujal Exp $
# FIXME: See http://www.debian-administration.org/articles/316 for an intro
# to how we should be doing this... -bjk 2009.09.09
have tuxpaint &&
_tuxpaint()
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '\
-h --help \
-v --version -vv --version-verbose \
-c --copying \
-u --usage \
-w --windowed -f --fullscreen \
--native \
--disablescreensaver --allowscreensaver \
--orient=landscape --orient=portrait \
-b --startblank --startlast \
--sound -q --nosound \
-x --noquit --quit
-p --print --noprint \
--complexshapes -s --simpleshapes \
-m --mixedcase -u --uppercase \
--fancycursors --nofancycursors \
--hidecursor --showcursor \
--mouse --keyboard \
--dontgrab --grab \
--noshortcuts --shortcuts \
--wheelmouse --nowheelmouse \
--nobuttondistinction --buttondistinction \
--outlines --nooutlines \
--stamps --nostamps \
--sysfonts --nosysfonts \
--nostampcontrols --stampcontrols \
--nomagiccontrols --magiccontrols \
--mirrorstamps --dontmirrorstamps \
--stampsize=0 --stampsize=1 \
--stampsize=2 --stampsize=3 \
--stampsize=4 --stampsize=5 \
--stampsize=6 --stampsize=7 \
--stampsize=8 --stampsize=9 --stampsize=default \
--saveoverask --saveover --saveovernew \
--nosave --save \
--autosave --noautosave \
--savedir --datadir \
--printdelay= \
--altprintmod --altprintalways --altprintnever \
--papersize \
-l --lang -L --locale \
--nosysconfig \
--nolockfile \
--mouse-accessibility \
--onscreen-keyboard \
--joystick-slowness \
--joystick-threshold \
--joystick-maxsteps \
--colorfile' -- $cur ) )
# We don't accept filenames on the command-line yet -bjk 2009.09.09
# else
# _filedir '@(ai|ani|bmp|cur|dia|eps|gif|ggr|ico|jpe|jpeg|jpg|pbm|pcx|pdf|pgm|png|ppm|pnm|ps|ras|sk|svg|svgz|targa|tga|tif|tiff|txt|wbmp|wmf|xbm|xpm)'
#
# FIXME: Allwo tab completion to show options after --lang (though may need to add support for --lang= for that to work?) -bjk 2009.09.09
fi
}
[ "${have:-}" ] && complete -F _tuxpaint $filenames tuxpaint
|