zsh/config/zsh/login/path

18 lines
445 B
Bash

#! zsh
path=(/usr/local/bin $path)
if (( $+commands[brew] )); then
path=(
/usr/local/opt/coreutils/libexec/gnubin
/usr/local/sbin
~/Library/Python/*/bin(N)
$path
)
fi
path=(/usr/local/texlive/20*/bin/*(N) $path)
path=(~/bin ~/.bin ~/.local/bin $path)
# Filter out nonexistent directories, . (the current directory), and duplicate
# paths - there should be no duplicates because of -U but just to be sure. ;)
path=(${(u)^path:#.}(N))