From 5f2122832cccc43aa9b97da2d61b68421e24abc7 Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Sun, 28 Nov 2021 14:22:57 +0100 Subject: [PATCH] Simplify remove duplicit items from PATH --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 1a2d333..fcd8f47 100644 --- a/bashrc +++ b/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" ":")