The following commit has been merged in the master branch:
commit 1e6a79196cc4942d24ff78d7955e4c295786e883
Author: Ville Skyttä <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits