diff --git a/.bashrc b/.bashrc index c1791e4..1a10917 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,16 @@ # shellcheck disable=1091,2154 + # Return here for non-interactive shells test ! -t 0 && return +# Source configuration files +if [ -d "$XDG_CONFIG_HOME/bash/" ]; then + for file in "$XDG_CONFIG_HOME/bash/"*; do + # shellcheck source=/dev/null + . "$file" + done +fi + tabs -4 unset HISTFILESIZE @@ -13,11 +22,4 @@ shopt -s histappend [ -f /usr/share/fzf/completion.bash ] && . /usr/share/fzf/completion.bash [ -f /usr/share/clang/bash-autocomplete.sh ] && . /usr/share/clang/bash-autocomplete.sh -if [ -d "$XDG_CONFIG_HOME/bash/" ]; then - for file in "$XDG_CONFIG_HOME/bash/"*; do - # shellcheck source=/dev/null - . "$file" - done -fi - command -v direnv >> /dev/null && eval "$(direnv hook bash)"