Attempting to carve out a sensible chunk of stuff for a dotfiles repo.
Sure hope I didn't miss any super secret crap :-P
This commit is contained in:
25
bash_completion.d/inkscape
Normal file
25
bash_completion.d/inkscape
Normal file
@@ -0,0 +1,25 @@
|
||||
# inkscape(1) completion
|
||||
# put this file in /etc/bash_completion.d/
|
||||
# allali@univ-mlv.fr
|
||||
|
||||
have inkscape &&
|
||||
_inkscape()
|
||||
{
|
||||
local cur
|
||||
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[COMP_CWORD]}
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '-? --help --usage -V --version \
|
||||
-z --without-gui -g --with-gui -f --file= -p --print= \
|
||||
-e --export-png= -d --export-dpi= -a --export-area= \
|
||||
-w --export-width= -h --export-height= -i --export-id= \
|
||||
-j --export-id-only -t --export-use-hints -b --export-background= \
|
||||
-y --export-background-opacity= -l --export-plain-svg= -s --slideshow' -- $cur ) )
|
||||
else
|
||||
_filedir '@(svg|svgz|ai|dia|eps|ani|bmp|cur|gif|ico|jpe|jpg|pbm|pcx|pgm|png|ppm|pnm|ras|targa|tga|tif|tiff|wbmp|xbm|xpm|ggr|ps|sk|txt|wmf)'
|
||||
fi
|
||||
|
||||
}
|
||||
[ "${have:-}" ] && complete -F _inkscape $filenames inkscape
|
Reference in New Issue
Block a user