contrib/bash_completion
changeset 953 52d8d81e72ad
parent 948 ffb0665028f0
parent 952 dbfabfcb485e
child 981 4f81068ed8cd
equal deleted inserted replaced
948:ffb0665028f0 953:52d8d81e72ad
     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