From b44edb49449b267d9e100603fc16cb95b249db8b Mon Sep 17 00:00:00 2001 From: Sebastian Remm Date: Mon, 22 May 2023 16:04:50 +0200 Subject: [PATCH 1/2] included command that eliminates duplicates in '$path' --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zshrc b/zshrc index 0cebe11525..14b76257e6 100644 --- a/zshrc +++ b/zshrc @@ -58,6 +58,10 @@ type -a nvm > /dev/null && load-nvmrc # Same for `./node_modules/.bin` and nodejs export PATH="./bin:./node_modules/.bin:${PATH}:/usr/local/sbin" +# the $path variable can get bloated after a while +# this command makes sure that it only includes unique values +typeset -U path + # Store your own aliases in the ~/.aliases file and load the here. [[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases" From 93b7c176c7fc1557233978353d80ac19ca6dbd37 Mon Sep 17 00:00:00 2001 From: Sebastian Remm Date: Mon, 29 May 2023 15:37:49 +0200 Subject: [PATCH 2/2] included command that eliminates duplicates in '$path' --- zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zshrc b/zshrc index 14b76257e6..20b03d8c9a 100644 --- a/zshrc +++ b/zshrc @@ -74,3 +74,4 @@ export EDITOR=code # Set ipdb as the default Python debugger export PYTHONBREAKPOINT=ipdb.set_trace +