prezto_config/modules/macports/init.zsh

36 lines
667 B
Bash
Raw Normal View History

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