Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/asdfPublic

Sets up asdf, with auto install and optimized usage of the direnv plugin.

License

NotificationsYou must be signed in to change notification settings

zimfw/asdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initializesasdf, installing it using git if not installed yet. Also, bypassesthe shims if you're using thedirenv plugin, as suggested by the pluginpro-tips.

Settings

The path ofASDF_DIR, where asdf is installed, is checked among the usualdirectories created by Homebrew or Pacman, or the default${HOME}/.asdf. Youcan defineASDF_DIR in your .zshrc before initializing this module to customizeits path:

ASDF_DIR=/path/to/asdf_dir

FAQ

Do do I install thedirenv plugin to work with this module?

  1. Run these commands:
    asdf plugin-add direnvasdf direnv setup --no-touch-rc-file --version latest
  2. Make sure your .zshrc does not contain the following line:
    source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc"

How to configure asdf to work with the direnv installed with my system package manager?

To use your system's direnv instead of direnv installed via asdf, follow thesesteps:

  1. Keep the asdf direnv plugin installed. You can install it with:
    asdf plugin-add direnv
  2. Uninstall any direnv installed with asdf:
    asdf uninstall direnv
  3. Make sure the ~/.config/direnv/lib/use_asdf.sh script exists. You cangenerate it with:
    asdf direnv setup --no-touch-rc-file --version system
  4. Make sure your direnv .envrc files haveuse asdf.
  5. Removezmodule asdf from .zimrc or any asdf initialization from .zshrc.
  6. Make sure you're initializing direnv during shell start-up, preferably withzmodule dirvenv in your .zimrc.

Basically you're using direnv to activate asdf this way. Since you're using thesystem's direnv, that does not depend on asdf to work, it's a much simpler setup.

About

Sets up asdf, with auto install and optimized usage of the direnv plugin.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp