prezto/modules/ocaml/init.zsh

20 lines
351 B
Bash
Raw Normal View History

#
2014-05-07 11:11:21 +09:00
# Initializes OCaml package management.
#
# Authors:
# Sebastian Wiesner <lunaryorn@gmail.com>
#
# Set $OPAMROOT
if [[ -z "$OPAMROOT" ]]; then
export OPAMROOT="${HOME}/.opam"
fi
# Return if requirements are not found.
if [[ ! -f "$OPAMROOT/opam-init/init.zsh" ]]; then
return 1
fi
# Initialize OPAM.
source "$OPAMROOT/opam-init/init.zsh"