Add MacPorts again

(The installer just modifies `~/.profile`, and is not system-wide.)
This commit is contained in:
Spotlight 2023-04-03 15:22:23 -05:00
parent 6aa02f7abf
commit 02a36af41b
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

6
zshrc
View file

@ -83,6 +83,12 @@ if [[ $OSTYPE == darwin* ]]; then
eval $($BREW_PREFIX/bin/brew shellenv) eval $($BREW_PREFIX/bin/brew shellenv)
fi fi
# What about MacPorts?
if [ -d /opt/local ]; then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
fi
# Under Darwin, we also want iTerm2 integration if possible. # Under Darwin, we also want iTerm2 integration if possible.
if [ -f ${HOME}/.iterm2_shell_integration.zsh ]; then if [ -f ${HOME}/.iterm2_shell_integration.zsh ]; then
source "${HOME}/.iterm2_shell_integration.zsh" source "${HOME}/.iterm2_shell_integration.zsh"