Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define sources dir
- BASHRCD_DIR=~/.bashrc.d/
- # Select shell scripts from sources dir
- RC_SOURCES=$(ls $BASHRCD_DIR | egrep '\.sh$')
- # Include found scripts
- for file in $RC_SOURCES
- do
- source $BASHRCD_DIR/$file
- done
Add Comment
Please, Sign In to add comment