keep duplicates out of $PATH on source

I have the following code that’s source-d by my .shellrc PATH="${PATH}:${HOME}/perl5/bin" PATH="${PATH}:${HOME}/.bin" export PATH but if I make changes to other code and then source this file, my path continues to get longer and longer with each source, each time appending these when they’re already there. What can I do to prevent this? Answers: Thank … Read more