enable completion for bash
This commit is contained in:
parent
5567cbf563
commit
fb14d788ba
1 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
Reference in a new issue