[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:42 UTC 2013


The following commit has been merged in the master branch:
commit 1e6a79196cc4942d24ff78d7955e4c295786e883
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Feb 2 19:49:19 2013 +0200

    xrandr --mode: Clean up one awk call.

diff --git a/completions/xrandr b/completions/xrandr
index 643b11f..5ce85f7 100644
--- a/completions/xrandr
+++ b/completions/xrandr
@@ -21,7 +21,8 @@ _xrandr()
             done
             if [[ $output ]]; then
                 local modes=$( xrandr | sed -e "1,/$output/ d" \
-                    -e "/connected/,$ d" | awk '{print $1}' )
+                    -e "/connected/,$ d" \
+                    -e "s/\([^[:space:]]\)[[:space:]].*/\1/" )
                 COMPREPLY=( $( compgen -W "$modes" -- "$cur" ) )
             fi
             return

-- 
bash-completion



More information about the Bash-completion-commits mailing list