[Bash-completion-commits] [SCM] bash-completion branch, master, updated. eced7126a30bb62c49924f0b2dc61f0131317c00

Guillaume Rousse guillomovitch at zarb.org
Sun May 17 20:13:23 UTC 2009


The following commit has been merged in the master branch:
commit ce78770724416262c360269fbe3cf2982868810c
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date:   Sun May 17 22:08:47 2009 +0200

    split xmms completion

diff --git a/bash_completion b/bash_completion
index cb584b9..737bf3d 100644
--- a/bash_completion
+++ b/bash_completion
@@ -6687,29 +6687,6 @@ _aspell()
 complete -F _aspell $filenames aspell
 }
 
-# xmms(1) completion
-#
-have xmms &&
-_xmms()
-{
-	local cur
-
-	COMPREPLY=()
-	cur=`_get_cword`
-
-	if [[ "$cur" == -* ]]; then
-		COMPREPLY=( $( compgen -W '-h --help -r --rew -p --play \
-			-u --pause -s --stop -t --play-pause -f --fwd -e \
-			--enqueue -m --show-main-window -i --sm-client-id \
-			-v --version' -- $cur ) )
-	else
-		_filedir '@(mp[23]|MP[23]|ogg|OGG|wav|WAV|pls|m3u|xm|mod|s[3t]m|it|mtm|ult|flac)'
-
-	fi
-
-} &&
-complete -F _xmms $filenames xmms
-
 # info(1) completion
 #
 have info &&
diff --git a/contrib/xmms b/contrib/xmms
new file mode 100644
index 0000000..fe9279c
--- /dev/null
+++ b/contrib/xmms
@@ -0,0 +1,25 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for xmms
+
+have xmms &&
+_xmms()
+{
+	local cur
+
+	COMPREPLY=()
+	cur=`_get_cword`
+
+	if [[ "$cur" == -* ]]; then
+		COMPREPLY=( $( compgen -W '-h --help -r --rew -p --play \
+			-u --pause -s --stop -t --play-pause -f --fwd -e \
+			--enqueue -m --show-main-window -i --sm-client-id \
+			-v --version' -- $cur ) )
+	else
+		_filedir '@(mp[23]|MP[23]|ogg|OGG|wav|WAV|pls|m3u|xm|mod|s[3t]m|it|mtm|ult|flac)'
+
+	fi
+
+} &&
+complete -F _xmms $filenames xmms

-- 
bash-completion



More information about the Bash-completion-commits mailing list