2 ms·
at some point I got sufficiently frustrated with all the things that decided they need to add the same various folders to my path over and over that I added thi
by femto113 5y ago
at some point I got sufficiently frustrated with all the things that decided they need to add the same various folders to my path over and over that I added this to the end of my .tcshrc (something similar should be possible in most shells)
# dedupe path
set path = ( `echo $path | tr ' ' '\n' | perl -ne 'print $_ unless $s{$_}++;' | tr '\n' ' '` )