Simplify remove duplicit items from PATH
This commit is contained in:
3
bashrc
3
bashrc
@@ -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" ":")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user