Index: tools/bash-completion |
diff --git a/tools/bash-completion b/tools/bash-completion |
index 229582c1f64332df80ab0345a7e80e9f4da81a3f..6a1b89a964e842913917163d4d963cf318d33bb8 100644 |
--- a/tools/bash-completion |
+++ b/tools/bash-completion |
@@ -11,7 +11,7 @@ _chrome_flag() { |
local cur targets |
cur="${COMP_WORDS[COMP_CWORD]}" |
targets=$(cd $chrome_source; \ |
- git ls-files | grep switches | \ |
+ git ls-files '*switches*' | \ |
xargs sed -ne 's/^[^/]*"\([^" /]\+\)".*/--\1/p') |
COMPREPLY=($(compgen -W "$targets" -- "$cur")) |
return 0 |