Artifact a3bcc6073b811a48a765de434442834a1e173edd
Wiki page
[Auto-completion]
by
anonymous on
2008-02-10 17:17:18.
D 2008-02-10T17:17:18
L Auto-completion
P e02f3652b809ab45bbb854bf87ba07ed542e12d9
U anonymous
W 1724
[MS] At least on my system (ubuntu) many programs feature auto-completion of subcommands; it is very useful. Fossil does not, svn and cvs do.
My guess is that the feature is enabled by the following entry in .bashrc:
<verbatim>
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
</verbatim>
It would be nice if we could develop and maintain a file that would enable this for fossil when copied to /etc/bash_completion.d (system wide) or sourced in .bashrc. I do not know if this can be made in a portable (or at least automated) manner at all.
Would attach the /etc/bash_completion.d/subversion file as example, but can't - and it's a bit too long to include here
<hr>
<hr><i>On 2008-02-10 17:17:18 UTC anonymous added:</i><br />
Fossil only needs enough of a command to make it unique, e.g.
<verbatim>
eric@tasso:~$ fossil h
fossil: ambiguous command prefix: h
fossil: use "help" for more information
eric@tasso:~$ fossil he
Usage: fossil help COMMAND.
Available COMMANDs:
add close gdiff new revert timeline
branch commit help open rm undo
cgi deconstruct http pull server update
changes del info push settings user
checkout descendents leaves rebuild status
clean diff ls reconstruct sync
clone extra merge redo tag
This is fossil version [e487b77b1a] 2008-02-04 02:45:55
</verbatim>
Z b6078df163917df92839059378d65c29