ncdulo/dotfiles

$PATH contains multiples of entries from `.zshrc`

Closed this issue · 0 comments

I noticed today that my $PATH environment variable seems to contain a total of 5 entries specifying ~/.local/bin. That should not be. Makes me wonder if .zshrc is being parsed more than once.

As I typed up this issue, and did a touch more debugging than I did five minutes ago, I had the strangest idea. What if .zshrc was being parsed multiple times because of how frequently I may source ~/.zshrc to change new tweaks, or update the current terminal without closing it.

So I opened a brand new terminal and sure enough, my $PATH is correct. Leaving this one up for good memories and a reminder of what happened, in case I encounter it again. This issue is resolved.