I've installed Mercurial (1.4.3-1) on ubuntu and it doesn't do tab completion in bash by default. What is the simplest way to enable this feature?
Just hit Tab while typing a command, option, or file name and the shell environment will automatically complete what you're typing or suggest options to you.
Installation. Bash completion will be installed in /usr/local/etc/bash_completion.
Bash completion is a functionality through which Bash helps users type their commands more quickly and easily. It does this by presenting possible options when users press the Tab key while typing a command.
You need to
/etc/bash_completion.d/mercurial
file with the completion code for Mercurial. You can source this file directly to enable completion support for Mercurial.You can also enable completion support for all programs:
Install the bash-completion
package: aptitude install bash-completion
.
Source /etc/bash_completion
in your ~/.bashrc
file:
# Use bash-completion, if available
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
This will enable completion for all commands, including Mercurial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With