mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
27 lines
789 B
Bash
27 lines
789 B
Bash
#!/usr/bin/env zsh
|
|
|
|
prepend() { eval "export $1=\"$2:\$$1\""; }
|
|
append() { eval "export $1=\"\$$1:$2\""; }
|
|
|
|
# user binaries
|
|
append PATH "$HOME/bin"
|
|
append PATH "$HOME/.local/bin"
|
|
# Rust binaries
|
|
prepend PATH "$HOME/.cargo/bin"
|
|
# 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
|
|
|