Functional version of bashrc

Tuning for tiger
This commit is contained in:
Martin Blazik
2020-09-14 08:14:36 +02:00
parent cc3c1867a8
commit d42eb0859b
4 changed files with 18 additions and 4 deletions

12
bashrc
View File

@@ -1,6 +1,10 @@
WORKSPACE=$(dirname "$0")
if [[ $0 != $BASH_SOURCE ]]; then
WORKSPACE=$(dirname $BASH_SOURCE)
for rc_file in $WORKSPACE/rc/*.rc; do
echo "source $rc_file"
done
for rc_file in $WORKSPACE/rc/*.rc; do
source $rc_file
done
else
echo "not sourced"
fi