We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38ac40b commit 86ae3f8Copy full SHA for 86ae3f8
tools/bash-completion.sh
@@ -37,15 +37,15 @@ v8_source=$(readlink -f $(dirname $BASH_SOURCE)/..)
37
_v8_flag() {
38
local cur defines targets
39
cur="${COMP_WORDS[COMP_CWORD]}"
40
- defines=$(cat src/flag-definitions.h \
+ defines=$(cat $v8_source/src/flag-definitions.h \
41
| grep "^DEFINE" \
42
| grep -v "DEFINE_implication" \
43
| sed -e 's/_/-/g')
44
targets=$(echo "$defines" \
45
| sed -ne 's/^DEFINE-[^(]*(\([^,]*\).*/--\1/p'; \
46
echo "$defines" \
47
| sed -ne 's/^DEFINE-bool(\([^,]*\).*/--no\1/p'; \
48
- cat src/d8.cc \
+ cat $v8_source/src/d8.cc \
49
| grep "strcmp(argv\[i\]" \
50
| sed -ne 's/^[^"]*"--\([^"]*\)".*/--\1/p')
51
COMPREPLY=($(compgen -W "$targets" -- "$cur"))
0 commit comments