Skip to content

Commit

Permalink
Fix PATH getting some duplicate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
wadells committed Mar 17, 2023
1 parent 03644fa commit 7d65c7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ function precmd () {
regen-prompt
}

for config_file (~/.dotfiles/zsh/*.zsh) source $config_file

# The following lines were added by compinstall
zstyle :compinstall filename "$HOME/.zshrc"

autoload -U compinit
compinit
# End of lines added by compinstall

for config_file (~/.dotfiles/zsh/*.zsh) source $config_file

# check for local configs that needn't be in the .dotfile repo
if [ -f ~/.zshrc.local ]; then
source ~/.zshrc.local
fi

# Remove any duplicate path entries
typeset -U PATH

0 comments on commit 7d65c7c

Please sign in to comment.