Description of problem: I don't have a proper bash-completion for many programs. For example I could not use bash-completion with any systemctl commands. systemct would be expanded to systemctl but any further command like restart etc. and the name of the service is not expanded. Version-Release number of selected component (if applicable): bash-completion-1.99-1.fc17.noarch How reproducible: Always Actual results: No completion at all. Expected results: Completion and presentation of possible commands. Additional info: I used to have the entry 'source /etc/bash_completion' in my .bashrc but since all is moved to /etc/bash_completion.d/ I tried to use something like 'source /etc/bash_completion.d/*' and various variants but it didn't work.
Changing source /etc/bash_completion to source /etc/profile.d/bash_completion.sh solves this. Sorry for the noise.
You shouldn't need to source anything yourself "manually" in ~/.bashrc or friends, /etc/profile.d/bash_completion.sh should be automatically loaded by bash.
Well that's not happening apparently. How is it started?
/etc/profile and /etc/bashrc (sourced by the default ~/.bashrc) source everything in /etc/profile.d.
Hmm, that's my .bashrc: PS1='\u@\h:\[\033[01;34m\][\W]\$ \[\033[00m\]' alias ll='ls -la' gh(){ grep "$*" "$HISTFILE"; }; #source /etc/profile.d/bash_completion.sh #export GTK2_RC_FILES=/home/johannes/.gtkrc-2.0 alias lwh="ls -alt | head -20" #alias rm="rm -i Is there a way to find a complete clean .bashrc or the default one for fedora?
Ok, nevermind, fixed it now by copying over some lines from the bashrc of a newly created user.