diff --git a/files/.bashrc b/files/.bashrc index 710130a..ac61ee8 100644 --- a/files/.bashrc +++ b/files/.bashrc @@ -59,3 +59,6 @@ fi if [ -d ~/.client ]; then for f in ~/.client/.*; do if [[ -f $f ]]; then source $f ; fi; done fi + +# source: https://stackoverflow.com/a/44232192 +PATH="$(perl -e 'print join(":", grep { not $seen{$_}++ } split(/:/, $ENV{PATH}))')"