diff --git a/modules/ocaml/README.md b/modules/ocaml/README.md new file mode 100644 index 00000000..a028fa2e --- /dev/null +++ b/modules/ocaml/README.md @@ -0,0 +1,29 @@ +Ocaml +===== + +Configures [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].* + + - [Sorin Ionescu](https://github.com/sorin-ionescu) + - [Sebastian Wiesner](https://github.com/lunaryorn) + + +[1]: http://ocaml.org/ +[2]: http://opam.ocamlpro.com/ +[3]: https://github.com/sorin-ionescu/prezto/issues diff --git a/modules/ocaml/init.zsh b/modules/ocaml/init.zsh new file mode 100644 index 00000000..fe1c2090 --- /dev/null +++ b/modules/ocaml/init.zsh @@ -0,0 +1,11 @@ +# +# Configures Ocaml package management +# +# Authors: Sebastian Wiesner +# + +if (( ! $+commands[opam] )); then + return 1 +fi + +eval `opam config env`