#port-wrapper
port-wrapper is a script for MacPorts, aimed mainly at maintainers, trying to ease their workflow.
Right now the wrapper supports only ZSH and has:
- Aliases, defined in
$XDG_CONFIG_DIR/port-wrapper/aliases.conf - Auto-sudo on subcommands requiring it
- Remembers last port expression, recall using '.'
- Other scripts:
port-copy-checksum: prints and copies to system clipboard the port checksumport-exists: Prints error message if supplied port does not exist (used for plumbing)port-lg: Port log with pagerport-maintainer-update: This should streamline simple port updatesport-svn-commit: easy way to commit a port fileport-svn-diff: easy way to diff a port file
- Shell functions:
port-cd: simple way to cd to port directory
To install just execute:
make install
and then add
source $PREFIX/share/port-wrapper/port-wrapper.zsh
somewhere in your zshrc.
The default prefix is /usr/local.