From: Steve Youngs Date: Tue, 9 Feb 2021 05:07:54 +0000 (+1000) Subject: Enable bash-completion in bash_profile X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=b39dc0b7f957da56a7f69666659f8148e2c4935a;p=pkgusr Enable bash-completion in bash_profile Signed-off-by: Steve Youngs --- diff --git a/etc/pkgusr/bash_profile b/etc/pkgusr/bash_profile index 7c4b777..dbea839 100644 --- a/etc/pkgusr/bash_profile +++ b/etc/pkgusr/bash_profile @@ -82,12 +82,6 @@ alias ls='ls --color=always -Fb' # Suck in some handy shell functions . /etc/pkgusr/handy_funcs -# If they exist, load any private settings. This comes last so that -# we can override any system defaults if need be -if [ -f ${HOME}/.pkgusrrc ]; then - . ${HOME}/.pkgusrrc -fi - # Go to the home directory whenever we su to a package user. cd @@ -96,6 +90,22 @@ if [[ ! -d ${HOME}/.config/git && -f ${HOME}/.gitconfig ]]; then prep_git fi +# Bash Completion +if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion +fi + +# If they exist, load any private settings. This comes last so that +# we can override any system defaults if need be +if [ -f ${HOME}/.pkgusrrc ]; then + . ${HOME}/.pkgusrrc +fi + +### +# Don't put anything below here unless it relies on something being +# set in ~/.pkgusrrc +### + # Maybe check if the build script can be updated, but not on dumb # terms so that TRAMP still works. if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then