In the GNOME Terminal, Bash does smart auto-completion. For example
apt-get in<TAB>
becomes
apt-get install
In Emacs shell-mode, this auto-completion doesn't work, even after I explicitly source /etc/bash_completion
. The above example sticks as in
or auto-completes with a filename in the current directory rather than a valid apt-get
command option. Presumably, this is because Emacs is intercepting the Tab key-press. How do I enable smart auto-completion in shell-mode
?