diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /share/bash-completion/completions | |
parent | Initial commit. (diff) | |
download | inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion/completions')
-rw-r--r-- | share/bash-completion/completions/inkscape | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/share/bash-completion/completions/inkscape b/share/bash-completion/completions/inkscape new file mode 100644 index 0000000..330d4ea --- /dev/null +++ b/share/bash-completion/completions/inkscape @@ -0,0 +1,26 @@ +# 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 |