Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
544dfdd6
Commit
544dfdd6
authored
Oct 03, 2018
by
Sebastian Müller
Committed by
Marc Cornellà
Oct 03, 2018
Browse files
macports: add README (#7204)
parent
2e0a5cbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/macports/README.md
0 → 100644
View file @
544dfdd6
# Macports plugin
This plugin adds completion for the package manager
[
Macports
](
https://macports.com/
)
,
as well as some aliases for common Macports commands.
To use it, add
`macports`
to the plugins array in your zshrc file:
```
zsh
plugins
=(
... macports
)
```
## Aliases
| Alias | Command | Description |
|-------|------------------------------------|--------------------------------------------------------------|
| pc |
`sudo port clean --all installed`
| Clean up intermediate installation files for installed ports |
| pi |
`sudo port install`
| Install package given as argument |
| psu |
`sudo port selfupdate`
| Update ports tree with MacPorts repository |
| puni |
`sudo port uninstall inactive`
| Uninstall inactive ports |
| puo |
`sudo port upgrade outdated`
| Upgrade ports with newer versions available |
| pup |
`psu && puo`
| Update ports tree, then upgrade ports to newest versions |
plugins/macports/macports.plugin.zsh
View file @
544dfdd6
#Aliases
alias
pc
=
"sudo port clean --all installed"
alias
pi
=
"sudo port install
$1
"
alias
pi
=
"sudo port install"
alias
psu
=
"sudo port selfupdate"
alias
puni
=
"sudo port uninstall inactive"
alias
puo
=
"sudo port upgrade outdated"
alias
pup
=
"psu && puo"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment