forked from palladius/sakura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
30 lines (24 loc) · 908 Bytes
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
VER=`cat "$SAKURADIR/VERSION"`
export SAKURA_VER=$VERSION
## enable/disable DEBUG
#export DEBUG=true
export DEBUG=false
if [ "nope$SAKURADIR" = "nope" ] ; then
echo "SAKURA> Sorry, SAKURADIR is missing. Please add to ~/.bashrc something like this:" >&2
echo " export SAKURADIR=~/path/to/your/sakura/repo/" >&2
echo "Or you might try the following: cat templates/bashrc.inject" >&2
fi
if [ ! -f $SAKURADIR/bashrc.local ] ; then
echo "File $SAKURADIR/bashrc.local not found, copying $SAKURADIR/bashrc.local. this may take a while..."
cp $SAKURADIR/bashrc.local.sample $SAKURADIR/bashrc.local
sleep 1
echo Done.
fi
# TODO change to run-all or source-all :)
for INCLUDE_FILE in $SAKURADIR/bashrc.d/*.include ; do
source "$INCLUDE_FILE"
done
#. $SAKURADIR/bashrc.d/00-functions
#. $SAKURADIR/bashrc.d/01-sakura_checks
#. $SAKURADIR/bashrc.d/all/_common
#. $SAKURADIR/bashrc.d/all/aliases