Refactor bashrc
Not check sourcing
This commit is contained in:
17
bashrc
17
bashrc
@@ -1,14 +1,11 @@
|
|||||||
if [[ $0 != $BASH_SOURCE ]]; then
|
echo "Loading Linux Workspace Project bashrc"
|
||||||
WORKSPACE_PATH=$(realpath $BASH_SOURCE)
|
|
||||||
export WORKSPACE=$(dirname $WORKSPACE_PATH)
|
|
||||||
|
|
||||||
for rc_file in $WORKSPACE/rc/*.rc; do
|
WORKSPACE_PATH=$(realpath $BASH_SOURCE)
|
||||||
source $rc_file
|
export WORKSPACE=$(dirname $WORKSPACE_PATH)
|
||||||
done
|
|
||||||
|
|
||||||
|
for rc_file in $WORKSPACE/rc/*.rc; do
|
||||||
|
source $rc_file
|
||||||
|
done
|
||||||
|
|
||||||
PATH=$($WORKSPACE/bin/path-uniq.py $WORKSPACE/bin)
|
PATH=$($WORKSPACE/bin/path-uniq.py $WORKSPACE/bin)
|
||||||
else
|
|
||||||
echo "not sourced"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user