From 5f3addf206e0298c6d1516173b14557c6edbf7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 10 May 2022 11:05:27 +0200 Subject: [PATCH] Update asdf direnv configuration --- Makefile | 3 +++ symlinks/config/direnv/.gitignore | 2 ++ symlinks/config/direnv/direnvrc | 2 -- symlinks/config/fish/conf.d/.gitignore | 1 + symlinks/tool-versions | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 symlinks/config/fish/conf.d/.gitignore diff --git a/Makefile b/Makefile index b5c6ead..12eb545 100644 --- a/Makefile +++ b/Makefile @@ -285,6 +285,9 @@ install_asdf: check_os @echo "Configure it as global using: " @echo "asdf global direnv $$version" @echo "" + @echo "Configure it with provided function:" + @echo "asdf direnv setup --shell fish --version latest" + @echo "" @echo "When using in projects, put the following in .envrc: " @echo "use asdf" @echo "==================================" diff --git a/symlinks/config/direnv/.gitignore b/symlinks/config/direnv/.gitignore index 9c94fce..9cde043 100644 --- a/symlinks/config/direnv/.gitignore +++ b/symlinks/config/direnv/.gitignore @@ -1,2 +1,4 @@ allow/ allow +lib/ +lib diff --git a/symlinks/config/direnv/direnvrc b/symlinks/config/direnv/direnvrc index 0a0088c..878c1ca 100644 --- a/symlinks/config/direnv/direnvrc +++ b/symlinks/config/direnv/direnvrc @@ -1,5 +1,3 @@ -source "$(asdf direnv hook asdf)" - layout_poetry() { if [[ ! -f pyproject.toml ]]; then log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to create one first.' diff --git a/symlinks/config/fish/conf.d/.gitignore b/symlinks/config/fish/conf.d/.gitignore new file mode 100644 index 0000000..fd79e1d --- /dev/null +++ b/symlinks/config/fish/conf.d/.gitignore @@ -0,0 +1 @@ +asdf_direnv.fish diff --git a/symlinks/tool-versions b/symlinks/tool-versions index b6afab6..860b8d7 100644 --- a/symlinks/tool-versions +++ b/symlinks/tool-versions @@ -1,4 +1,4 @@ -direnv 2.27.0 +direnv 2.31.0 nodejs 16.9.1 python system ruby 3.0.0