equal
deleted
inserted
replaced
1 _hg_commands() |
1 _hg_commands() |
2 { |
2 { |
3 local commands="$(hg -v help | sed -e '1,/^list of commands:/d' \ |
3 local commands="$(hg -v help | sed -e '1,/^list of commands:/d' \ |
4 -e '/^global options:/Q' \ |
4 -e '/^global options:/,$d' \ |
5 -e '/^ [^ ]/!d; s/[,:]//g;')" |
5 -e '/^ [^ ]/!d; s/[,:]//g;')" |
6 |
6 |
7 # hide debug commands from users, but complete them if |
7 # hide debug commands from users, but complete them if |
8 # specifically asked for |
8 # specifically asked for |
9 if [[ "$cur" == de* ]]; then |
9 if [[ "$cur" == de* ]]; then |