PDA

View Full Version : Get bash completion working on fedora 3 (bash 3.0)


madcat
24th November 2004, 04:08 PM
If you're a TAB fond, you may have liked the bash_completion feature in bash 2.0. Here is how to get it working with fedora 3.
1. Download the bash_completion rpm from Here (http://dag.wieers.com/packages/bash-completion/bash-completion-20041017-1.1.fc3.rf.noarch.rpm)
2. Install it : (as root) rpm -ivh bash-completion-20041017-1.1.fc3.rf.noarch.rpm
3. Edit /etc/bashrc (need to be root too) and add at the end this :
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
4. Enjoy !

bärtil
26th November 2004, 08:58 PM
For me it works without install anything "special", just basic fedora installation??

madcat
27th November 2004, 11:05 AM

For me it works without install anything "special", just basic fedora installation??
I don't know if you're talking about the advanced completion or about the basic one. I mean, whith advanced completion when you type rpm [tab] it won't propose you a tar.gz file. Or if you type rpm -q [tab] it will search the rpm database.