Summary: | skel .bashrc should also include code for per-user bash-completions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aaron Walker (RETIRED) <ka0ttic> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Aaron Walker (RETIRED)
![]() the following is already in skel's bashrc: # uncomment the following to activate bash-completion: #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion why cant this suggested enhancement be added to that file instead ? /etc isn't per-user. heh that was my original idea but I didn't think it would work (obviously I wasn't alone ;p). $ tail /etc/profile.d/bash-completion if [ "$PS1" ] && [ -d ~/.bash_completion.d ] ; then for file in ~/.bash_completion.d/* ; do [ -f $file ] && source $file done fi $ echo lala="LALALALALALALA" > ~/.bash_completion.d/lala $ . /etc/profile.d/bash-completion $ echo $lala LALALALALALALA Sorry for the spam guys... i didnt say /etc was per-user, but if the global bash-completion does a per-user check like Aaron suggested ... |