diff --git a/.bashrc b/.bashrc index 4dc3448..ebf3f03 100644 --- a/.bashrc +++ b/.bashrc @@ -13,4 +13,19 @@ HISTSIZE= HISTFILESIZE= # Auto cd shopt -s autocd +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + source $HOME/.bash_aliases + +# 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