Show More
@@ -7,7 +7,7 b' shopt -s extglob' | |||||
7 | all=($(hg --debug help | sed -e '1,/^list of commands:/d' \ |
|
7 | all=($(hg --debug help | sed -e '1,/^list of commands:/d' \ | |
8 | -e '/^global options:/,$d' \ |
|
8 | -e '/^global options:/,$d' \ | |
9 | -e '/^ [^ ]/!d; s/^ //; s/[,:]//g;')) |
|
9 | -e '/^ [^ ]/!d; s/^ //; s/[,:]//g;')) | |
10 |
|
10 | |||
11 | commands="${all[*]##debug*}" |
|
11 | commands="${all[*]##debug*}" | |
12 | result=$(compgen -W "${commands[*]}" -- "$cur") |
|
12 | result=$(compgen -W "${commands[*]}" -- "$cur") | |
13 |
|
13 | |||
@@ -168,7 +168,7 b' shopt -s extglob' | |||||
168 | fi |
|
168 | fi | |
169 | ;; |
|
169 | ;; | |
170 | *) |
|
170 | *) | |
171 |
|
|
171 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -- "$cur" )) | |
172 | ;; |
|
172 | ;; | |
173 | esac |
|
173 | esac | |
174 |
|
174 |
General Comments 0
You need to be logged in to leave comments.
Login now