Initial commit, modular zsh config easy to extend with extra behaviours

This commit is contained in:
Danielle McLean 2016-10-02 18:17:25 +11:00
commit df6164e3aa
No known key found for this signature in database
GPG key ID: CC91589719027E94
22 changed files with 154 additions and 0 deletions

17
home/.zsh/login/path Normal file
View file

@ -0,0 +1,17 @@
#! zsh
path=(/usr/local/bin $path)
if whence brew >/dev/null; then
path=(
/usr/local/opt/coreutils/libexec/gnubin
/usr/local/sbin
~/Library/Python/*/bin
$path
)
fi
path=(/usr/local/texlive/20*/bin/universal-* $path)
path=(~/bin ~/.bin ~/.local/bin $path)
# filter out duplicates, nonexistent directories, and . (the current directory)
path=(${(u)^path:#.}(N))