Fossil SCM

Added bash auto-completion script from Stuart Rackham.

stephan 2012-08-19 09:45 trunk
Commit 85f1856c95209ea58c665a58eb16767cba937159
--- 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{

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button