mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 15:08:01 +00:00
36 lines
667 B
Bash
36 lines
667 B
Bash
#
|
|
# Defines MacPorts aliases and adds MacPorts directories to path variables.
|
|
#
|
|
# Authors:
|
|
# Matt Cable <wozz@wookie.net>
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Return if requirements are not found.
|
|
if [[ "$OSTYPE" != darwin* ]]; then
|
|
return 1
|
|
fi
|
|
|
|
#
|
|
# Paths
|
|
#
|
|
|
|
# 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'
|
|
|