prezto/modules/macports/init.zsh

35 lines
666 B
Bash
Raw Normal View History

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