Skip to content

Commit

Permalink
Update OPAM setup
Browse files Browse the repository at this point in the history
Recent OPAM versions generate more elaborate setup code.
  • Loading branch information
swsnr authored and sorin-ionescu committed Oct 10, 2014
1 parent fea08d4 commit 417b9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ocaml/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#

# Return if requirements are not found.
if (( ! $+commands[opam] )); then
if [[ ! -f "$HOME/.opam/opam-init/init.zsh" ]]; then
return 1
fi

# Initialize OPAM.
eval "$(opam config env)"
source "$HOME/.opam/opam-init/init.zsh"

0 comments on commit 417b9d4

Please sign in to comment.