Skip to content

Commit

Permalink
.bashrc: add load .bashrc.d/* files
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory Efimov committed Aug 1, 2019
1 parent 8e2c303 commit 3d8d2fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,12 @@ export GPG_TTY=$(tty)

# python shell autocomplete
export PYTHONSTARTUP=~/.pythonrc

# load other rc
if [[ -d $HOME/.bashrc.d ]]; then
for FILE in $( ls $HOME/.bashrc.d/ ); do
if [[ -s $HOME/.bashrc.d/$FILE ]]; then
source $HOME/.bashrc.d/$FILE
fi
done
fi

0 comments on commit 3d8d2fd

Please sign in to comment.