Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ -f /usr/gnu/bin/bash ] && exec /usr/gnu/bin/bash --login
- function load_external(){
- local spath=$1;
- if [ ! -d $1 ]
- then echo $1 "is not a directory"
- return 1
- fi
- for s in $( ls $1 );
- do
- full=$1$s
- if [ -d $full ]
- then
- continue
- fi
- if [ -f $full ]
- then
- . $full
- else
- echo "$full -->> Not found !!!"
- fi
- done
- }
- load_external ~/.bashconf/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement