From b44edb49449b267d9e100603fc16cb95b249db8b Mon Sep 17 00:00:00 2001
From: Sebastian Remm <sebastian.remm@web.de>
Date: Mon, 22 May 2023 16:04:50 +0200
Subject: [PATCH] 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"