summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:49 +0000
commitc853ffb5b2f75f5a889ed2e3ef89b818a736e87a (patch)
tree7d13a0883bb7936b84d6ecdd7bc332b41ed04bee /share/bash-completion
parentInitial commit. (diff)
downloadinkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.tar.xz
inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.zip
Adding upstream version 1.3+ds.upstream/1.3+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/completions/inkscape27
1 files changed, 27 insertions, 0 deletions
diff --git a/share/bash-completion/completions/inkscape b/share/bash-completion/completions/inkscape
new file mode 100644
index 0000000..68c2ec9
--- /dev/null
+++ b/share/bash-completion/completions/inkscape
@@ -0,0 +1,27 @@
+# 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 -q --active-window -f --file= -p --print= \
+ --actions= --actions-list --actions-file= \
+ -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