diff options
Diffstat (limited to 'completions/freeciv-server')
-rw-r--r-- | completions/freeciv-server | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/completions/freeciv-server b/completions/freeciv-server new file mode 100644 index 00000000..3def8bf1 --- /dev/null +++ b/completions/freeciv-server @@ -0,0 +1,28 @@ +# freeciv-server completion + +_civserver() +{ + local cur prev words cword + _init_completion || return + + case $prev in + -f|-g|-l|-r|--file|--log|--gamelog|--read) + _filedir + return 0 + ;; + esac + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + fi + +} && +complete -F _civserver civserver freeciv-server + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh |