Take the tour ×  I recently started configuring a OSX 10.7
environment for development. I've installed HomeBrew, and added
the following to my .bash_profile   Everything is working great
except when I echo $PATH i get the following string of
duplicates: /usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:
/usr/local/sbin:~/bin:/usr/local/git/bin:usr/local/bin:/usr/loca
l/git/bin:usr/local/bin:/usr/local/git/bin:usr/local/bin:/usr/lo
cal/git/bin:usr/local/bin:/usr/local/git/bin:usr/local/bin:/usr/
local/git/bin:usr/local/bin:/usr/local/git/bin:usr/local/bin:/us
r/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local
/git/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/l
ocal/bin:/usr/X11/bin  I don't think I've made any changes to
path besides the single line in my .bash_profile. What is the
best way for me to pair down those duplicates? Is there a way to
hunt down which files are modifying my path and try to eliminate
them?   share|improve this question Anything in /etc/paths.d/?
Any other bash co