Based totally on the GREAT rbenv
rbenv's documentation largely applies here as well
This will get you going with the latest version of exenv and make it easy to fork and contribute any changes back upstream.
-
Check out exenv into
~/.exenv.$ git clone https://github.com/exenv/exenv.git ~/.exenvOptionally, try to compile dynamic bash extension to speed up exenv. Don't worry if it fails; exenv will still work normally:
$ cd ~/.exenv && src/configure && make -C src -
Add
~/.exenv/binto your$PATHfor access to theexenvcommand-line utility.For bash
$ echo 'export PATH="$HOME/.exenv/bin:$PATH"' >> ~/.bash_profile
For zsh
$ echo 'export PATH="$HOME/.exenv/bin:$PATH"' >> ~/.zshrc
For fish shell
$ echo 'set PATH $HOME/.exenv/bin $PATH' >> ~/.config/fish/config.fish
-
Run
~/.exenv/bin/exenv initfor shell-specific instructions on how to initialize exenv to enable shims and autocompletion. -
Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.) Now check if exenv was set up:
$ type exenv #=> "exenv is a function"
-
(Optional) Install elixir-build, which provides the
exenv installcommand that simplifies the process of installing new Elixir versions
If you've installed exenv manually using git, you can upgrade your installation to the cutting-edge version at any time.
$ cd ~/.exenv
$ git pull