Add Ocaml module
Manage local Ocaml modules with OPAM. Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
parent
e18f18af92
commit
1c6a016644
3 changed files with 48 additions and 0 deletions
|
@ -86,6 +86,11 @@ Node.js
|
|||
|
||||
Provides utility functions for Node.js and loads npm completion.
|
||||
|
||||
Ocaml
|
||||
-----
|
||||
|
||||
Initializes Ocaml package management.
|
||||
|
||||
OSX
|
||||
---
|
||||
|
||||
|
|
28
modules/ocaml/README.md
Normal file
28
modules/ocaml/README.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
Ocaml
|
||||
=====
|
||||
|
||||
Initializes [Ocaml][1] package management.
|
||||
|
||||
OPAM
|
||||
----
|
||||
|
||||
[OPAM][2] is a package manager for Ocaml.
|
||||
|
||||
This module enables local package installation with OPAM by extending the
|
||||
relevant path and Ocaml variables.
|
||||
|
||||
### Usage
|
||||
|
||||
Install packages to your local package directory with `opam install`.
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
*The authors of this module should be contacted via the [issue tracker][3].*
|
||||
|
||||
- [Sebastian Wiesner](https://github.com/lunaryorn)
|
||||
|
||||
[1]: http://ocaml.org/
|
||||
[2]: http://opam.ocamlpro.com/
|
||||
[3]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
15
modules/ocaml/init.zsh
Normal file
15
modules/ocaml/init.zsh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# Initializes Ocaml package management.
|
||||
#
|
||||
# Authors:
|
||||
# Sebastian Wiesner <lunaryorn@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[opam] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Initialize OPAM.
|
||||
eval "$(opam config env)"
|
||||
|
Loading…
Reference in a new issue