Commit aa96949a authored by Marc Jeanmougin's avatar Marc Jeanmougin 🌟 Committed by Ted Gould

move bash-completion into main repo

parent 5799d73f
......@@ -109,6 +109,9 @@ if(UNIX)
../TRANSLATORS
../COPYING
DESTINATION ${INKSCAPE_SHARE_INSTALL}/doc)
install(FILES
bash-completion/completions/inkscape
DESTINATION ${SHARE_INSTALL}/bash-completion/completions)
endif()
......
# inkscape(1) completion -*- shell-script -*-
_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 '@(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)'
fi
}
complete -F _inkscape $filenames inkscape
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment