diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-03-28 11:40:12 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-03-28 11:41:28 +0200 |
commit | d1b72130cf158f3beba01696a76f9e7f00548d9e (patch) | |
tree | 62d3b9a54b1f2e132dec3f46bf0766fdc55219a8 | |
parent | 4e83dce5cef0de8bbd1b8e884d289ae17631d746 (diff) | |
download | bash-completion-d1b72130cf158f3beba01696a76f9e7f00548d9e.tar.gz |
Use "-profile help" to get mplayer and friends -profile completions.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | bash_completion | 3 | ||||
-rw-r--r-- | debian/changelog | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -140,6 +140,7 @@ bash-completion (1.0) * 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 diff --git a/bash_completion b/bash_completion index 11d928e4..3e36d895 100644 --- a/bash_completion +++ b/bash_completion @@ -6084,8 +6084,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 6d3a91f4..e5bfa688 100644 --- a/debian/changelog +++ b/debian/changelog @@ -140,6 +140,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 |