summaryrefslogtreecommitdiffstats
path: root/completions/eog
diff options
context:
space:
mode:
Diffstat (limited to 'completions/eog')
-rw-r--r--completions/eog14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/eog b/completions/eog
index 2330e1a..14c448d 100644
--- a/completions/eog
+++ b/completions/eog
@@ -1,9 +1,9 @@
# eog(1) completion -*- shell-script -*-
-_eog()
+_comp_cmd_eog()
{
- local cur prev words cword split
- _init_completion -s || return
+ local cur prev words cword was_split comp_args
+ _comp_initialize -s -- "$@" || return
case $prev in
-'?' | --help | --help-all | --help-gtk)
@@ -11,16 +11,16 @@ _eog()
;;
esac
- $split && return
+ [[ $was_split ]] && return
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_help "$1" --help-all)' -- "$cur"))
+ _comp_compgen_help -- --help-all
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
- _filedir '@(ani|?(w)bmp|gif|ico|j2[ck]|jp[cefgx2]|jpeg|jpg2|pcx|p[gp]m|pn[gm]|ras|svg?(z)|tga|tif?(f)|x[bp]m)'
+ _comp_compgen_filedir '@(ani|avif|?(w)bmp|gif|hei[cf]|ico|j2[ck]|jp[cefgx2]|jpeg|jpg2|jxl|pcx|p[bgp]m|pn[gm]|ras|svg?(z)|tga|tif?(f)|webp|x[bp]m)'
} &&
- complete -F _eog eog
+ complete -F _comp_cmd_eog eog
# ex: filetype=sh