feat(revamp): add zsh and neovim configs, add an install script and a dependencies list
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# MacPorts
|
||||
|
||||
Defines MacPorts aliases and adds MacPorts directories to path variables.
|
||||
|
||||
## Aliases
|
||||
|
||||
Aliases are enabled by default. To disable them, add the following to
|
||||
_`${ZDOTDIR:-$HOME}/.zpreztorc`_.
|
||||
|
||||
```sh
|
||||
zstyle ':prezto:module:macports:alias' skip 'yes'
|
||||
```
|
||||
|
||||
- `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
|
||||
@@ -0,0 +1,39 @@
|
||||
#
|
||||
# Defines MacPorts aliases and adds MacPorts directories to path variables.
|
||||
#
|
||||
# Authors:
|
||||
# Matt Cable <wozz@wookie.net>
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Load dependencies.
|
||||
pmodload 'helper'
|
||||
|
||||
# Return if requirements are not found.
|
||||
if ! is-darwin; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
#
|
||||
# Paths
|
||||
#
|
||||
|
||||
# Set the list of directories that Zsh searches for programs.
|
||||
path=(
|
||||
/opt/local/{bin,sbin}
|
||||
$path
|
||||
)
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
if ! zstyle -t ':prezto:module:macports:alias' skip; then
|
||||
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'
|
||||
fi
|
||||
Reference in New Issue
Block a user