[ZSH] Deduplicate server PATH
Port the platform-neutral PATH cleanup from 7ccb268 without bringing macOS-only Go, Run:AI, LM Studio, or Homebrew configuration onto the server branch.
This commit is contained in:
@@ -227,3 +227,7 @@ export TIME_STYLE="long-iso"
|
|||||||
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
||||||
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
|
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
|
||||||
[[ -f ~/.zsh/.os_config.zsh ]] && source ~/.zsh/.os_config.zsh
|
[[ -f ~/.zsh/.os_config.zsh ]] && source ~/.zsh/.os_config.zsh
|
||||||
|
|
||||||
|
# Remove duplicate entries added by inherited and machine-specific PATH config
|
||||||
|
# while preserving the first occurrence and therefore command precedence.
|
||||||
|
typeset -U path PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user