From baf53365d9b90720bcfcc68be61a41ac751306a9 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 2 Mar 2015 18:05:58 +0100 Subject: [PATCH] doc: remove bash completion as it doesn't work anymore --- NEWS | 1 + doc/ncmpcpp-completion.bash | 34 ---------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 doc/ncmpcpp-completion.bash diff --git a/NEWS b/NEWS index c11826b..75bd13c 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ncmpcpp-0.6.3 (????-??-??) * Fix floating point exception when adding a specific number of random items. * Passwords are no longer added to the input history. * It is now possible to put more than one specific flag consecutively in formats. +* Bash completion file was removed as it no longer works. ncmpcpp-0.6.2 (2014-12-13) diff --git a/doc/ncmpcpp-completion.bash b/doc/ncmpcpp-completion.bash deleted file mode 100644 index 49222c4..0000000 --- a/doc/ncmpcpp-completion.bash +++ /dev/null @@ -1,34 +0,0 @@ -# Installation: -# - If you have system bash completion, place this in /etc/bash_completion.d or -# source it from $HOME/.bash_completion -# - If you don't have system bash completion, source this from your .bashrc - - _ncmpcpp () -{ - local cur prev cmds opts - - cur="$2" - prev="$3" - cmds=`ncmpcpp --help 2>&1 | awk '/^ [a-z]+ /{print $1}'`; - opts="`ncmpcpp --help 2>&1 | awk '/^ -.+,/{print $1 "\n" $2}' | sed -e 's/,//;$a--now-playing'`" - - case "$prev" in - ncmpcpp) - COMPREPLY=($(compgen -W '$opts $cmds' -- "$cur")) - ;; - --port|-p|--host|-h) - COMPREPLY=() - ;; - --help|-?|--version|-v|--now-playing) - return - ;; - next|pause|play|prev|stop|toggle|volume) - opts="`echo $opts | sed -e 's/--port//;s/--host//;s/-p//;s/-h//'`" - COMPREPLY=($(compgen -W '$opts' -- "$cur")) - ;; - *) - COMPREPLY=($(compgen -W '$opts $cmds' -- "$cur")) - ;; - esac -} -complete -F _ncmpcpp ncmpcpp -- 2.11.4.GIT