contrib/bash_completion
changeset 952 dbfabfcb485e
parent 935 925563ff1b18
child 953 52d8d81e72ad
equal deleted inserted replaced
951:859de3ebc041 952:dbfabfcb485e
     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