| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Flag completion rule for bash. | 5 # Flag completion rule for bash. |
| 6 # To load in your shell, "source path/to/this/file". | 6 # To load in your shell, "source path/to/this/file". |
| 7 | 7 |
| 8 # Usage examples | 8 # Usage examples |
| 9 # ============== | 9 # ============== |
| 10 # | 10 # |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 complete -F _chrome_flag google-chrome | 74 complete -F _chrome_flag google-chrome |
| 75 complete -F _chrome_flag chrome | 75 complete -F _chrome_flag chrome |
| 76 if [ $(uname) = "Darwin" ] | 76 if [ $(uname) = "Darwin" ] |
| 77 then | 77 then |
| 78 complete -F _chrome_flag Chromium | 78 complete -F _chrome_flag Chromium |
| 79 fi | 79 fi |
| 80 | 80 |
| 81 for gtest_test_executable in $( | 81 for gtest_test_executable in $( |
| 82 cd $chrome_source; | 82 cd $chrome_source; |
| 83 git ls-files '*/BUILD.gn' | xargs sed -ne 's/^test("\([^"]\+\)").*$/\1/p' | 83 git ls-files '*/BUILD.gn' | xargs sed -ne 's/^.*test("\([^"]\+\)").*$/\1/p' |
| 84 ); do | 84 ); do |
| 85 complete -F _gtest_flag $gtest_test_executable | 85 complete -F _gtest_flag $gtest_test_executable |
| 86 done | 86 done |
| 87 | 87 |
| 88 complete -F _layout_test_flag run-webkit-tests | 88 complete -F _layout_test_flag run-webkit-tests |
| OLD | NEW |