Show More
@@ -1,3 +1,5 b'' | |||
|
1 | #!/bin/bash | |
|
2 | ||
|
1 | 3 | _hg_commands() |
|
2 | 4 | { |
|
3 | 5 | local commands="$(hg -v help | sed -e '1,/^list of commands:/d' \ |
@@ -8,7 +10,7 b'' | |||
|
8 | 10 | # specifically asked for |
|
9 | 11 | if [[ "$cur" == de* ]]; then |
|
10 | 12 | commands="$commands debugcheckstate debugstate debugindex" |
|
11 | commands="$commands debugindexdot debugwalk" | |
|
13 | commands="$commands debugindexdot debugwalk debugdata" | |
|
12 | 14 | fi |
|
13 | 15 | COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -W "$commands" -- "$cur") ) |
|
14 | 16 | } |
@@ -135,6 +137,12 b'' | |||
|
135 | 137 | fi |
|
136 | 138 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -d -- "$cur" )) |
|
137 | 139 | ;; |
|
140 | debugindex|debugindexdot) | |
|
141 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -X "!*.i" -- "$cur" )) | |
|
142 | ;; | |
|
143 | debugdata) | |
|
144 | COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -X "!*.d" -- "$cur" )) | |
|
145 | ;; | |
|
138 | 146 | cat) |
|
139 | 147 | local count=$(_hg_count_non_option -o --output) |
|
140 | 148 | if [ $count = 2 ]; then |
General Comments 0
You need to be logged in to leave comments.
Login now