Guest User

Untitled

a guest
Dec 18th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # Define sources dir
  2. BASHRCD_DIR=~/.bashrc.d/
  3. # Select shell scripts from sources dir
  4. RC_SOURCES=$(ls $BASHRCD_DIR | egrep '\.sh$')
  5.  
  6. # Include found scripts
  7. for file in $RC_SOURCES
  8. do
  9. source $BASHRCD_DIR/$file
  10. done
Add Comment
Please, Sign In to add comment