diff --git a/modules/fink/README.md b/modules/fink/README.md new file mode 100644 index 00000000..d4f17900 --- /dev/null +++ b/modules/fink/README.md @@ -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 + diff --git a/modules/fink/init.zsh b/modules/fink/init.zsh new file mode 100644 index 00000000..c905117c --- /dev/null +++ b/modules/fink/init.zsh @@ -0,0 +1,46 @@ +# +# Defines Fnik aliases and adds Fink directories to path variables. +# +# Authors: +# Jeff Cox +# Matt Cable +# Sorin Ionescu +# + +# 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' +