Aadd LWS to PATH
remove duplicates from PATH
This commit is contained in:
@@ -31,4 +31,6 @@ function prepend_path() {
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function uniq_path() {
|
||||
echo "$PATH" | tr ":" "\n" | awk '!seen[$0]++' | tr "\n" ":" | sed -r 's/:+/:/g' | sed -r 's/^:|:$//g'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user