You are not logged in.
A little background. When I used Ubuntu (up until maybe a week ago), almost all the commands had special autocompletion "rules" as I guess you might call them. For instance, I could type "sudo apt-get install libsdl", hit tab twice, and get a list of all the available packages related to libsdl.
How can I configure this in Arch?
Offline
Hi, check this link out: http://wiki.archlinux.org/index.php/Bas … Completion
Relevant part of .bashrc:
# enable auto completion on sudo commands
complete -cf sudo
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Last edited by s3kt0r (2009-05-03 02:32:06)
box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle
Offline
The bash-completion package adds a file in /etc/profile.d which gets sourced at login time. There is no need to add anything to ~/.bashrc.
Offline
Hey thanks, it worked!
Offline
The bash-completion package adds a file in /etc/profile.d which gets sourced at login time. There is no need to add anything to ~/.bashrc.
Cool m8, didn't know that.
Thanks
box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle
Offline
The bash-completion package adds a file in /etc/profile.d which gets sourced at login time. There is no need to add anything to ~/.bashrc.
Care to adjust the wiki? Right now it specifically states that the .bashrc needs to be modified.
pacman russian roulette: yes | pacman -Rcs $(pacman -Q | LANG=C sort -R | head -n $((RANDOM % 10)))
(yes, I know its broken)
Offline
It's done, zatricky.
Offline