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

Ville Skyttä ville.skytta at iki.fi
Sat Mar 28 09:44:22 UTC 2009


The following commit has been merged in the master branch:
commit dc88329e8eea8424f2e1dc7efc50a80e240708c4
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Mar 28 11:40:12 2009 +0200

    Use "-profile help" to get mplayer and friends -profile completions.

diff --git a/bash_completion b/bash_completion
index 398f43f..58ea84f 100644
--- a/bash_completion
+++ b/bash_completion
@@ -6085,8 +6085,7 @@ _mplayer()
 			return 0
 			;;
 		-profile)
-			local profiles=$(sed -ne 's|\[\(.*\)\]|\1|p' ~/.mplayer/config)
-			COMPREPLY=( $( compgen -W "$profiles" -- $cur))
+			_mplayer_options_list $cmd $prev
 			return 0
 			;;
 	esac
diff --git a/debian/changelog b/debian/changelog
index d100669..0f48cb5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -148,6 +148,7 @@ bash-completion (1:1.0-1) UNRELEASED; urgency=low
   * Simplify bash_completion.sh, return earlier in non-applicable environments.
   * Remove obsolete --buildarch and --buildos rpm(build) completions.
   * Add rpmbuild --target completion.
+  * Use "-profile help" to get mplayer and friends -profile completions.
 
   [ Freddy Vulto ]
   * Restored `_display()' completion for `display' by removing

-- 
bash-completion



More information about the Bash-completion-commits mailing list