Show More
@@ -9,7 +9,7 b' shopt -s extglob' | |||||
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 "$ |
|
12 | result=$(compgen -W "$commands" -- "$cur") | |
13 |
|
13 | |||
14 | # hide debug commands from users, but complete them if |
|
14 | # hide debug commands from users, but complete them if | |
15 | # there is no other possible command |
|
15 | # there is no other possible command | |
@@ -39,7 +39,7 b' shopt -s extglob' | |||||
39 |
|
39 | |||
40 | _hg_status() |
|
40 | _hg_status() | |
41 | { |
|
41 | { | |
42 | local files="$( hg status -$1 | cut -b 3- )" |
|
42 | local files="$( hg status -$1 . | cut -b 3- )" | |
43 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -W "$files" -- "$cur" )) |
|
43 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -W "$files" -- "$cur" )) | |
44 | } |
|
44 | } | |
45 |
|
45 | |||
@@ -167,17 +167,6 b' shopt -s extglob' | |||||
167 | debugdata) |
|
167 | debugdata) | |
168 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -X "!*.d" -- "$cur" )) |
|
168 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -X "!*.d" -- "$cur" )) | |
169 | ;; |
|
169 | ;; | |
170 | cat) |
|
|||
171 | local count=$(_hg_count_non_option '-o|--output') |
|
|||
172 | if [ $count = 2 ]; then |
|
|||
173 | _hg_tags |
|
|||
174 | else |
|
|||
175 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -- "$cur" )) |
|
|||
176 | fi |
|
|||
177 | ;; |
|
|||
178 | *) |
|
|||
179 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -- "$cur" )) |
|
|||
180 | ;; |
|
|||
181 | esac |
|
170 | esac | |
182 |
|
171 | |||
183 | } |
|
172 | } |
General Comments 0
You need to be logged in to leave comments.
Login now