1
0
Fork 0

enable completion for bash

This commit is contained in:
J. Elfring (i) 2022-12-15 11:27:06 +01:00
parent 5567cbf563
commit fb14d788ba

View file

@ -76,20 +76,20 @@ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if ! shopt -oq posix; then
# if [[ -f /usr/share/bash-completion/bash_completion ]]; then
# . /usr/share/bash-completion/bash_completion
# elif [[ -f /etc/bash_completion ]]; then
# . /etc/bash_completion
# fi
#fi
#
#if [ -d /etc/bash_completion.d ]
#then
# for file in /etc/bash_completion.d/* ; do
# source "$file"
# done
#fi
if ! shopt -oq posix; then
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
elif [[ -f /etc/bash_completion ]]; then
. /etc/bash_completion
fi
fi
if [ -d /etc/bash_completion.d ]
then
for file in /etc/bash_completion.d/* ; do
source "$file"
done
fi
if [[ -f $HOME/.bash_profile ]]; then
source $HOME/.bash_profile