PATH management

Prepend

path=($HOME/.bin $path)

Append

path+=$HOME/.bin

Unique

typeset -U -- For arrays (but not for associative arrays), keep only the first occurrence of each duplicated value. Via the Zsh documentation

typeset -U path && path+=$HOME/.bin