Refactor bashrc

Not check sourcing
This commit is contained in:
Martin Blazik
2020-09-16 10:42:02 +02:00
parent d37b8677b6
commit 7b4d0eb53b

17
bashrc
View File

@@ -1,14 +1,11 @@
if [[ $0 != $BASH_SOURCE ]]; then
WORKSPACE_PATH=$(realpath $BASH_SOURCE)
export WORKSPACE=$(dirname $WORKSPACE_PATH)
echo "Loading Linux Workspace Project bashrc"
for rc_file in $WORKSPACE/rc/*.rc; do
source $rc_file
done
WORKSPACE_PATH=$(realpath $BASH_SOURCE)
export WORKSPACE=$(dirname $WORKSPACE_PATH)
for rc_file in $WORKSPACE/rc/*.rc; do
source $rc_file
done
PATH=$($WORKSPACE/bin/path-uniq.py $WORKSPACE/bin)
else
echo "not sourced"
fi
PATH=$($WORKSPACE/bin/path-uniq.py $WORKSPACE/bin)