From 9e872a8598143f68cbae44d5d0fa5f8cf5a5bf06 Mon Sep 17 00:00:00 2001 From: Spirit Date: Tue, 30 Jul 2024 15:55:06 +0300 Subject: [PATCH] Update .bashrc --- .bashrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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