Skip to content

Commit

Permalink
bashrc: Re-order a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsmedstad committed Feb 11, 2024
1 parent 766bfb6 commit 21f6912
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)"

0 comments on commit 21f6912

Please sign in to comment.