23 lines
406 B
Plaintext
23 lines
406 B
Plaintext
# Create ~/.bash_profile
|
|
|
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
|
|
# Create ~/.bashrc file with contents below.
|
|
|
|
#!/bin/bash
|
|
# ~/.bashrc
|
|
|
|
BDOTDIR=~/.bash
|
|
|
|
[ -x $BDOTDIR/const.sh ] && source $BDOTDIR/const.sh
|
|
[ -x $BDOTDIR/local_const.sh ] && source $BDOTDIR/local_const.sh
|
|
for rc in $BDOTDIR/*.sh
|
|
do
|
|
[ -x $rc ] && source $rc
|
|
done
|
|
unset rc
|
|
|
|
[ -x $BDOTDIR/local.sh ] && source $BDOTDIR/local.sh
|
|
|
|
unset BDOTDIR
|