From a4522f92b04ffeed227d217c679a8c19338a2a22 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 26 Feb 2023 01:49:25 -0500 Subject: [PATCH] Auto Update --- files/.bashrc | 3 +++ 1 file changed, 3 insertions(+) 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}))')"