Permalink
Browse files

Merge branch 'master' of github.com:OCamlPro/opam

  • Loading branch information...
samoht committed Sep 29, 2012
2 parents 2dc796a + 0a92666 commit 566816ee6c89ebf4daf5fe6c87f366cd2b901ec8
Showing with 8 additions and 0 deletions.
  1. +8 −0 shell/opam_auto_eval.sh
View
@@ -0,0 +1,8 @@
+OPAM_EXECUTABLE_PATH=$(which opam) || return 1
+function opam () {
+ "$OPAM_EXECUTABLE_PATH" "$@"
+ if [ -n "$1" ] && [ "$1" = "switch" ]
+ then
+ eval $("$OPAM_EXECUTABLE_PATH" config -env)
+ fi
+}

0 comments on commit 566816e

Please sign in to comment.