I have a little problem with bash completion.
It works pretty well except for one thing; if I enable some "module" with one of the two following commands:
Code: Select all
eselect bashcomp enable gentooCode: Select all
bash-completion-config --install gentooCode: Select all
source ~/.bashrcCode: Select all
eselect bashcomp disable gentooCode: Select all
bash-completion-config --uninstall gentooCode: Select all
source ~/.bashrcIs there a better command for changes to take effect immediately or perhaps it is a bug?
Some details:
app-shells/bash-3.1_p16
app-shells/bash-completion-20060301
app-shells/gentoo-bashcomp-20050516
app-admin/eselect-1.0
app-shells/bash-completion-config-0.8-r2
This is ~/.bashrc:
Code: Select all
[[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion
[[ -f /etc/bashrc ]] && source /etc/bashrc
alias halt='shutdown -h now'
alias reboot='shutdown -r now'
alias eprogress='watch -n 5 --no-title eprogress'
alias esync='emerge --sync && gensync bmg-main && gensync gentoo-de && zugaina-w
ebrsync && update-eix'
alias emake='nano -w /etc/make.conf'
alias eworld='nano -w /var/lib/portage/world'
alias exorg='nano -w /etc/X11/xorg.conf'
alias egrub='nano -w /boot/grub/grub.conf'
alias emodules='nano -w /etc/modules.autoload.d/kernel-2.6'
alias mkernel='make && make modules_install'Code: Select all
alias rm='rm -i'
alias du='du -sh'
alias man='man -P /usr/bin/most'
alias formatfloppy='fdformat /dev/floppy/0 && mkfs.msdos -v /dev/floppy/0'
alias beep='beep -l 2000'
alias pingtest='ping -a -c 5 www.google.it'
alias ls='ls --color=tty'
extract() {
if [ -f "$1" ] ; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;;
*.tbz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.tgz) tar xzf "$1" ;;
*.tar) tar xf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.gz) gunzip "$1" ;;
*.rar) rar x "$1" ;;
*.zip) unzip "$1" ;;
*.tar.7z) 7za x -so "$1" | tar xf - ;;
*.7z) 7za x "$1" ;;
*.ace) unace x "$1" ;;
*) echo "$1 cannot be extracted via extract" ;;
esac
else
echo "$1 is not a regular file"
fi
}
