You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: assuming you have to work with projects that use other version files (e.g. `.ruby-version`, `.node-version`, or `.nvmrc`), then in `~/.asdfrc` add the line:
```
legacy_version_file = yes
```
## Usage
asdf normally uses a `.tool-versions` file in your project's working directory to specify what versions of each tool to use.
For example:
```
$ cd ~/src/envato/hosted-shopfront
$ asdf current
elixir 1.5.2 (set by /Users/phil/.tool-versions)
erlang 19.1 (set by /Users/phil/.tool-versions)
nodejs 7.7.4 (set by /Users/phil/src/envato/hosted-shopfront/.nvmrc)
postgres 9.6.5 (set by /Users/phil/.tool-versions)
redis 3.2.6 (set by /Users/phil/.tool-versions)
ruby 2.4.2 (set by /Users/phil/src/envato/hosted-shopfront/.ruby-version)
```
Here you can see that most of my tools are using the default/global version. However it has picked up nodejs 7.7.4 from the local `.nvmrc` and ruby 2.4.2 from `.ruby-version` file.
If, hypothetically, I wanted to use a particular version of elixir, I would type:
```
$ asdf local elixir 1.4.2
```
This creates a local `.tool-versions` file with contents:
```
elixir 1.4.2
```
Now if I check current tool versions, it shows elixir 1.4.2:
```
$ asdf current
elixir 1.4.2 (set by /Users/phil/src/envato/hosted-shopfront/.tool-versions)
erlang 19.1 (set by /Users/phil/.tool-versions)
nodejs 7.7.4 (set by /Users/phil/src/envato/hosted-shopfront/.nvmrc)
postgres 9.6.5 (set by /Users/phil/.tool-versions)
redis 3.2.6 (set by /Users/phil/.tool-versions)
ruby 2.4.2 (set by /Users/phil/src/envato/hosted-shopfront/.ruby-version)