Add a new fink module to duplicate the MacPorts module's functionality for stubborn fink users.

This commit is contained in:
Jeff Cox 2012-10-24 16:16:05 -04:00
parent 13b501adaf
commit ae433e9de2
2 changed files with 71 additions and 0 deletions

25
modules/fink/README.md Normal file
View file

@ -0,0 +1,25 @@
Fink
========
Defines Fnik aliases and adds Fink directories to path variables.
Aliases
-------
- `finki` installs a fink package.
- `finks` searches for a fink package.
- `finku` updates all packages.
- `finkU` performs a selfupdate.
- `finkx` uninstalls a fink package.
Authors
-------
*The authors of this module should be contacted via the [issue tracker][1].*
- [Jeff Cox](https://github.com/jeffcox)
- [Matt Cable](https://github.com/curiousstranger)
- [Sorin Ionescu](https://github.com/sorin-ionescu)
[1]: https://github.com/sorin-ionescu/prezto/issues

46
modules/fink/init.zsh Normal file
View file

@ -0,0 +1,46 @@
#
# Defines Fnik aliases and adds Fink directories to path variables.
#
# Authors:
# Jeff Cox
# 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 info searches for manuals.
infopath=(
/sw/share/info
$infopath
)
# Set the list of directories that man searches for manuals.
manpath=(
/sw/share/man
$manpath
)
# Set the list of directories that Zsh searches for programs.
path=(
/sw/{bin,sbin}
$path
)
#
# Aliases
#
alias finki='fink install'
alias finks='fink list'
alias finku='fink update-all'
alias finkU='fink selfupdate'
alias finkx='fink remove'