Add MacPorts support

This commit is contained in:
Spotlight 2021-12-14 05:32:50 -06:00
parent d3d43ae6c7
commit 73e33c2100
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
2 changed files with 7 additions and 4 deletions

@ -1 +1 @@
Subproject commit 717bd87ef928293e0cc6cfc12ebf2e007cb25311 Subproject commit 2c8983cc391287e5e26e015c3ab9c38de9f9b759

9
zshrc
View file

@ -32,9 +32,6 @@ source ~/.p10k.zsh
######### #########
# the env _essentials_ # the env _essentials_
######### #########
# Goodbye, Atom. Sorry, muscle memory.
alias atom='code'
export HISTFILE="$HOME/.zsh_history" export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=5000 export HISTSIZE=5000
export SAVEHIST=$HISTSIZE export SAVEHIST=$HISTSIZE
@ -87,6 +84,12 @@ if [[ $OSTYPE == darwin* ]]; then
eval $($BREW_PREFIX/bin/brew shellenv) eval $($BREW_PREFIX/bin/brew shellenv)
fi fi
# If we have it available, permit MacPorts.
if [ -f /opt/local/bin/port ]; 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"