summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-03-02 18:05:58 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2015-03-02 18:06:36 +0100
commitbaf53365d9b90720bcfcc68be61a41ac751306a9 (patch)
tree361f778c4fecb96c30d6977d434a4fac500611df /doc
parentfb52fe77a52ccbfe7f48b194becc9e31b356aa8a (diff)
doc: remove bash completion as it doesn't work anymore
Diffstat (limited to 'doc')
-rw-r--r--doc/ncmpcpp-completion.bash34
1 files changed, 0 insertions, 34 deletions
diff --git a/doc/ncmpcpp-completion.bash b/doc/ncmpcpp-completion.bash
deleted file mode 100644
index 49222c4b..00000000
--- 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