]> kaliko git repositories - mpd-sima.git/blobdiff - data/bash/completion.sh
Releasing 0.13.1
[mpd-sima.git] / data / bash / completion.sh
index be0d4447f1772a87ab7b7e406c420c2a73812957..ce0139e1aed5f4d58e48ac2433a0f48658873f34 100644 (file)
@@ -31,7 +31,7 @@ _sima() {
           -l --log \
           -v --log-level \
           -S --host \
-          -P --mpd_port \
+          -P --port \
           -h --help --version \
           --var_dir \
           -d --daemon"
@@ -71,22 +71,15 @@ _sima() {
 complete -F _sima mpd_sima
 complete -F _sima mpd-sima
 
-_art_names_list() {
-    local IFS=$'\n'
-    compgen -W "${artists}" -- ${cur}
-}
-
 _simadb_cli() {
     local cur prev opts artists
     local IFS=$'\n'
     COMPREPLY=()
     _get_comp_words_by_ref cur prev
-    opts="--add_similarity -a --remove_similarity --remove_artist \
-    --purge_hist --view_artist --view_all \
+    opts="--purge_hist --view_artist --view_all \
     --bl_curr_trk --bl_curr_art --bl_curr_al --bl_art --remove_bl --view_bl \
     --dbfile -d \
     --host -S --port -P \
-    --reciprocal -r --check_names -c \
     --version -h --help"
     opts=$(echo $opts | sed 's/ /\n/g')
 
@@ -105,15 +98,6 @@ _simadb_cli() {
         --host|-S)
             COMPREPLY=( $(compgen -A hostname ${cur}) )
             ;;
-        -a|--add_similarity|--view_artist|-v|--bl_art)
-            if [ -x /usr/bin/mpc ]; then
-                artists=$(for x in $(/usr/bin/mpc list artist) ; do echo "'${x}'"; done)
-                COMPREPLY=( $(compgen -W "${artists}" -- ${cur}) )
-                return 0
-            fi
-            # It should also complete artist name when the string ends with a comma
-            return 0
-            ;;
         *)
             ;;
     esac