Simplify remove duplicit items from PATH

This commit is contained in:
Martin Blazik
2021-11-28 14:22:57 +01:00
parent 7fca3f1f84
commit 5f2122832c

3
bashrc
View File

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