This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/macports/init.zsh
2012-06-12 16:17:45 -04:00

43 lines
874 B
Bash

#
# Defines MacPorts aliases and adds MacPorts directories to path variables.
#
# Authors:
# Matt Cable <wozz@wookie.net>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# This module is for Mac OS X only.
if [[ "$OSTYPE" != darwin* ]]; then
return 1
fi
# Paths
# Set the list of directories that info searches for manuals.
infopath=(
/opt/local/share/info
$infopath
)
# Set the list of directories that man searches for manuals.
manpath=(
/opt/local/share/man
$manpath
)
# Set the list of directories that Zsh searches for programs.
path=(
/opt/local/{bin,sbin}
$path
)
# Aliases
alias portc='sudo port clean --all installed'
alias porti='sudo port install'
alias ports='port search'
alias portU='sudo port selfupdate && sudo port upgrade outdated'
alias portu='sudo port upgrade'
alias portX='sudo port -u uninstall'
alias portx='sudo port uninstall'