1 # Copyright (c) 2010, 2011, 2013, 2014, 2015, 2021 kaliko <kaliko@azylum.org>
3 # This file is part of MPD_sima
5 # MPD_sima is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # MPD_sima is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with MPD_sima. If not, see <http://www.gnu.org/licenses/>.
20 # Bash completion file
22 # On debian system either place this file in etc/bash_completion.d/ or source it
28 _get_comp_words_by_ref cur prev
48 if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
49 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
58 COMPREPLY=( $(compgen -W "debug info warning error" -- ${cur} ))
60 -p|--pid|-l|--log|-c|--config)
64 _known_hosts_real -a "${cur}"
67 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
71 complete -o nosort -F _sima mpd_sima
72 complete -o nosort -F _sima mpd-sima