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
|
# enable programmable completion features (you don't need to enable
|
||||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
# sources /etc/bash.bashrc).
|
# sources /etc/bash.bashrc).
|
||||||
#if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
# if [[ -f /usr/share/bash-completion/bash_completion ]]; then
|
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
|
||||||
# . /usr/share/bash-completion/bash_completion
|
. /usr/share/bash-completion/bash_completion
|
||||||
# elif [[ -f /etc/bash_completion ]]; then
|
elif [[ -f /etc/bash_completion ]]; then
|
||||||
# . /etc/bash_completion
|
. /etc/bash_completion
|
||||||
# fi
|
fi
|
||||||
#fi
|
fi
|
||||||
#
|
|
||||||
#if [ -d /etc/bash_completion.d ]
|
if [ -d /etc/bash_completion.d ]
|
||||||
#then
|
then
|
||||||
# for file in /etc/bash_completion.d/* ; do
|
for file in /etc/bash_completion.d/* ; do
|
||||||
# source "$file"
|
source "$file"
|
||||||
# done
|
done
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
if [[ -f $HOME/.bash_profile ]]; then
|
if [[ -f $HOME/.bash_profile ]]; then
|
||||||
source $HOME/.bash_profile
|
source $HOME/.bash_profile
|
||||||
|
|
Reference in a new issue