{"id":15513078,"url":"https://github.com/zimfw/asdf","last_synced_at":"2025-04-13T12:13:06.484Z","repository":{"id":46138963,"uuid":"393566446","full_name":"zimfw/asdf","owner":"zimfw","description":"Sets up asdf, with auto install and optimized usage of the direnv plugin.","archived":false,"fork":false,"pushed_at":"2024-10-05T03:50:39.000Z","size":6,"stargazers_count":11,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:13:02.942Z","etag":null,"topics":["asdf","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zimfw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-08-07T03:25:17.000Z","updated_at":"2025-03-11T11:09:00.000Z","dependencies_parsed_at":"2024-04-12T23:00:52.203Z","dependency_job_id":null,"html_url":"https://github.com/zimfw/asdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fasdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fasdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fasdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fasdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimfw","download_url":"https://codeload.github.com/zimfw/asdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asdf","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"created_at":"2024-10-02T09:54:04.470Z","updated_at":"2025-04-13T12:13:06.460Z","avatar_url":"https://github.com/zimfw.png","language":"Shell","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows"],"readme":"asdf\n====\n\nInitializes [asdf], installing it using git if not installed yet. Also, bypasses\nthe shims if you're using the [direnv plugin], as suggested by the plugin\n[pro-tips].\n\nSettings\n--------\n\nThe path of `ASDF_DIR`, where asdf is installed, is checked among the usual\ndirectories created by Homebrew or Pacman, or the default `${HOME}/.asdf`. You\ncan define `ASDF_DIR` in your .zshrc before initializing this module to customize\nits path:\n\n    ASDF_DIR=/path/to/asdf_dir\n\nFAQ\n---\n\n### Do do I install the [direnv plugin] to work with this module?\n\n1. Run these commands:\n   ```\n   asdf plugin-add direnv\n   asdf direnv setup --no-touch-rc-file --version latest\n   ```\n2. Make sure your .zshrc does not contain the following line:\n   ```\n   source \"${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc\"\n   ```\n\n### How to configure asdf to work with the direnv installed with my system package manager?\n\nTo use your system's direnv instead of direnv installed via asdf, follow these\nsteps:\n\n1. Keep the asdf direnv plugin installed. You can install it with:\n   ```\n   asdf plugin-add direnv\n   ```\n2. Uninstall any direnv installed with asdf:\n   ```\n   asdf uninstall direnv\n   ```\n3. Make sure the ~/.config/direnv/lib/use_asdf.sh script exists. You can\n   generate it with:\n   ```\n   asdf direnv setup --no-touch-rc-file --version system\n   ```\n4. Make sure your direnv .envrc files have `use asdf`.\n5. Remove `zmodule asdf` from .zimrc or any asdf initialization from .zshrc.\n6. Make sure you're initializing direnv during shell start-up, preferably with\n   `zmodule dirvenv` in your .zimrc.\n\nBasically you're using direnv to activate asdf this way. Since you're using the\nsystem's direnv, that does not depend on asdf to work, it's a much simpler setup.\n\n[asdf]: https://github.com/asdf-vm/asdf\n[direnv plugin]: https://github.com/asdf-community/asdf-direnv\n[pro-tips]: https://github.com/asdf-community/asdf-direnv/blob/master/README.md#pro-tips\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fasdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimfw%2Fasdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fasdf/lists"}