init
This commit is contained in:
25
.zprezto/modules/macports/README.md
Normal file
25
.zprezto/modules/macports/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
MacPorts
|
||||
========
|
||||
|
||||
Defines MacPorts aliases and adds MacPorts directories to path variables.
|
||||
|
||||
Aliases
|
||||
-------
|
||||
|
||||
- `portc` cleans the files used to build ports.
|
||||
- `porti` installs a port.
|
||||
- `ports` searches for a port.
|
||||
- `portu` upgrades a port.
|
||||
- `portU` upgrades MacPorts, the ports collection, and outdated ports.
|
||||
- `portx` uninstalls a port.
|
||||
- `portX` uninstalls inactive ports.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the [issue tracker][1].*
|
||||
|
||||
- [Matt Cable](https://github.com/curiousstranger)
|
||||
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||||
|
||||
[1]: https://github.com/sorin-ionescu/prezto/issues
|
34
.zprezto/modules/macports/init.zsh
Normal file
34
.zprezto/modules/macports/init.zsh
Normal file
@@ -0,0 +1,34 @@
|
||||
#
|
||||
# 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'
|
Reference in New Issue
Block a user