From b797d6ac052fdbbad8a3fdc0e10dc74dff99992b Mon Sep 17 00:00:00 2001 From: ik-fib Date: Mon, 22 Apr 2024 21:02:23 +0900 Subject: [PATCH] =?UTF-8?q?asdf-direnv=E8=A8=AD=E5=AE=9A=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DOT_LINK_TARGET/config/asdf-direnv/zshrc | 3 +++ DOT_LINK_TARGET/zsh.d/zshrc_mac | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 DOT_LINK_TARGET/config/asdf-direnv/zshrc diff --git a/DOT_LINK_TARGET/config/asdf-direnv/zshrc b/DOT_LINK_TARGET/config/asdf-direnv/zshrc new file mode 100644 index 0000000..22bb687 --- /dev/null +++ b/DOT_LINK_TARGET/config/asdf-direnv/zshrc @@ -0,0 +1,3 @@ +### Do not edit. This was autogenerated by 'asdf direnv setup' ### +export ASDF_DIRENV_BIN=~/.asdf/installs/direnv/2.34.0/bin/direnv +eval "$($ASDF_DIRENV_BIN hook zsh)" diff --git a/DOT_LINK_TARGET/zsh.d/zshrc_mac b/DOT_LINK_TARGET/zsh.d/zshrc_mac index 90e5630..4fc91a6 100644 --- a/DOT_LINK_TARGET/zsh.d/zshrc_mac +++ b/DOT_LINK_TARGET/zsh.d/zshrc_mac @@ -12,6 +12,9 @@ if [ -d ~/.asdf/shims ]; then alias brew="env PATH=${PATH/$EXCLUSION_PATH:/} brew" fi +## asdf-direnv +source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc" + ## asdf-golang . ~/.asdf/plugins/golang/set-env.zsh ### https://github.com/kennyp/asdf-golang#version-selection