Remove duplicates from $PATH

This commit is contained in:
2016-10-08 18:35:08 +02:00
parent a29746134e
commit 85896837bc
+3
View File
@@ -319,4 +319,7 @@ case $- in
;;
esac
# Remove duplicates from PATH.
export PATH="$(awk -v RS=: -v ORS=: '!arr[$0]++' <<<"$PATH" | head -1)"
# vim: ft=sh