Aadd LWS to PATH

remove duplicates from PATH
This commit is contained in:
Martin Blazik
2022-01-18 07:39:34 +01:00
parent b39fee5953
commit 924718fe27
2 changed files with 6 additions and 4 deletions

6
bashrc
View File

@@ -10,6 +10,6 @@ for rc_file in $WORKSPACE/rc/*; do
source $rc_file
done
#export PATH=$($WORKSPACE/bin/path-uniq.py $WORKSPACE/bin $WORKSPACE/opt/bin)
export PATH=$(echo "$PATH" | tr ":" "\n" | awk '!seen[$0]++' | tr "\n" ":")
PATH="$PATH:$LWS/bin"
PATH="$(uniq_path)"
export PATH