[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-117-gba50a54
Ville Skyttä
ville.skytta at iki.fi
Sat Feb 2 18:09:43 UTC 2013
The following commit has been merged in the master branch:
commit ae42c9675838fc92a7b77f71c0a4988c8e724822
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Feb 2 20:01:33 2013 +0200
xrandr: Use _parse_help.
diff --git a/completions/xrandr b/completions/xrandr
index 5ce85f7..d17fb29 100644
--- a/completions/xrandr
+++ b/completions/xrandr
@@ -42,19 +42,8 @@ _xrandr()
;;
esac
- case $cur in
- *)
- COMPREPLY=( $( compgen -W '-display -help --orientation --query
- --size --rate --version -x -y --screen --verbose --dryrun
- --q1 --q12 --nograb --prop --properties --fb --fbmm --dpi
- --output --auto --mode --preferred --pos --rate --refresh
- --reflect --rotate --left-of --right-of --above --below
- --same-as --set --scale --transform --off --crtc --panning
- --gamma --brightness --primary --noprimary --newmode --rmmode
- --addmode --delmode' -- "$cur" ) )
- return
- ;;
- esac
+ COMPREPLY=( $( compgen -W '$( "$1" -help 2>&1 |
+ sed -e "s/ or / /g" -e "s/<[^>]*>]//g" | _parse_help - )' -- "$cur" ) )
} &&
complete -F _xrandr xrandr
--
bash-completion
More information about the Bash-completion-commits
mailing list