2018-06-15 13:43:04 +00:00
|
|
|
#!/usr/bin/env zsh
|
2018-02-23 09:38:24 +00:00
|
|
|
|
|
|
|
prepend() { eval "export $1=\"$2:\$$1\""; }
|
|
|
|
append() { eval "export $1=\"\$$1:$2\""; }
|
|
|
|
|
|
|
|
# user binaries
|
|
|
|
append PATH "$HOME/bin"
|
|
|
|
append PATH "$HOME/.local/bin"
|
2018-06-10 19:28:54 +00:00
|
|
|
# Rust binaries
|
2018-08-08 05:53:46 +00:00
|
|
|
prepend PATH "$HOME/.cargo/bin"
|
2018-02-23 09:38:24 +00:00
|
|
|
# global Yarn packages
|
|
|
|
append PATH "$HOME/.config/yarn/global/node_modules/.bin"
|
|
|
|
|
|
|
|
if is_macos; then
|
|
|
|
# GNU sed
|
|
|
|
prepend PATH "/usr/local/opt/gnu-tar/libexec/gnubin"
|
|
|
|
prepend MANPATH "/usr/local/opt/gnu-tar/libexec/gnuman"
|
|
|
|
# GNU tar
|
|
|
|
prepend PATH "/usr/local/opt/gnu-sed/libexec/gnubin"
|
|
|
|
prepend MANPATH "/usr/local/opt/gnu-sed/libexec/gnuman"
|
|
|
|
# GNU coreutils
|
|
|
|
prepend PATH "/usr/local/opt/coreutils/libexec/gnubin"
|
|
|
|
prepend MANPATH "/usr/local/opt/coreutils/libexec/gnuman"
|
|
|
|
# Haskell packages
|
|
|
|
append PATH "$HOME/Library/Haskell/bin"
|
|
|
|
fi
|
|
|
|
|