Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/bash_completion @ 953:52d8d81e72ad
Merge with TAH
author | mpm@selenic.com |
---|---|
date | Fri, 19 Aug 2005 16:45:25 -0800 |
parents | ffb0665028f0 dbfabfcb485e |
children | 4f81068ed8cd |
comparison
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 |