2012-02-01 04:37:51 +00:00
|
|
|
#
|
2012-06-12 20:15:59 +00:00
|
|
|
# Defines MacPorts aliases and adds MacPorts directories to path variables.
|
2012-02-01 04:37:51 +00:00
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Matt Cable <wozz@wookie.net>
|
2012-06-12 20:15:59 +00:00
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
2012-02-01 04:37:51 +00:00
|
|
|
#
|
|
|
|
|
2020-03-29 19:49:35 +00:00
|
|
|
# Load dependencies.
|
|
|
|
pmodload 'helper'
|
|
|
|
|
2012-07-23 19:00:44 +00:00
|
|
|
# Return if requirements are not found.
|
2020-02-13 08:56:29 +00:00
|
|
|
if ! is-darwin; then
|
2012-06-02 18:18:36 +00:00
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2012-08-04 18:48:32 +00:00
|
|
|
#
|
2012-06-02 18:19:33 +00:00
|
|
|
# Paths
|
2012-08-04 18:48:32 +00:00
|
|
|
#
|
2012-06-02 18:19:33 +00:00
|
|
|
|
|
|
|
# Set the list of directories that Zsh searches for programs.
|
|
|
|
path=(
|
|
|
|
/opt/local/{bin,sbin}
|
|
|
|
$path
|
|
|
|
)
|
|
|
|
|
2012-08-04 18:48:32 +00:00
|
|
|
#
|
2011-08-31 03:16:15 +00:00
|
|
|
# Aliases
|
2012-08-04 18:48:32 +00:00
|
|
|
#
|
|
|
|
|
2012-06-12 20:15:59 +00:00
|
|
|
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'
|