Fossil SCM
Added bash auto-completion script from Stuart Rackham.
Commit
85f1856c95209ea58c665a58eb16767cba937159
Parent
6139cf7a29cca3f…
1 file changed
+10
| --- a/tools/fossil-autocomplete.bash | ||
| +++ b/tools/fossil-autocomplete.bash | ||
| @@ -0,0 +1,10 @@ | ||
| 1 | +# Command name completion for Fossil. | |
| 2 | +# Mailing-list contribution by Stuart Rackham. | |
| 3 | +function _fossil() { | |
| 4 | + local cur commands | |
| 5 | + cur=${COMP_WORDS[COMP_CWORD]} | |
| 6 | + commands=$(fossil help --all) | |
| 7 | + if [ $COMP_CWORD -eq 1 ] || [ ${COMP_WORDS[1]} = help ]; then | |
| 8 | + # Command name completion for ommand name completion for 1st argument or 2nd if help command. | |
| 9 | + COMPREPL # File name completion for other arguments. | |
| 10 | + COMPREPLY=( $(compgen -f $curREPLY=( $(compgen -f $cur{ |
| --- a/tools/fossil-autocomplete.bash | |
| +++ b/tools/fossil-autocomplete.bash | |
| @@ -0,0 +1,10 @@ | |
| --- a/tools/fossil-autocomplete.bash | |
| +++ b/tools/fossil-autocomplete.bash | |
| @@ -0,0 +1,10 @@ | |
| 1 | # Command name completion for Fossil. |
| 2 | # Mailing-list contribution by Stuart Rackham. |
| 3 | function _fossil() { |
| 4 | local cur commands |
| 5 | cur=${COMP_WORDS[COMP_CWORD]} |
| 6 | commands=$(fossil help --all) |
| 7 | if [ $COMP_CWORD -eq 1 ] || [ ${COMP_WORDS[1]} = help ]; then |
| 8 | # Command name completion for ommand name completion for 1st argument or 2nd if help command. |
| 9 | COMPREPL # File name completion for other arguments. |
| 10 | COMPREPLY=( $(compgen -f $curREPLY=( $(compgen -f $cur{ |