From 5b9d5db173b0d16e2485c8a18bb900e37dafe464 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Mon, 17 Jan 2022 14:41:18 +0300 Subject: [PATCH] feat(console): add direnv --- .config/fish/config.fish | 4 ++++ .config/guix/manifests/console.scm | 1 + Console.org | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2751821..d5f1652 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -67,3 +67,7 @@ function e eval $EDITOR $argv end # Functions:1 ends here + +# [[file:../../Console.org::*direnv][direnv:1]] +direnv hook fish | source +# direnv:1 ends here diff --git a/.config/guix/manifests/console.scm b/.config/guix/manifests/console.scm index bfbb3bc..ca24d4f 100644 --- a/.config/guix/manifests/console.scm +++ b/.config/guix/manifests/console.scm @@ -1,5 +1,6 @@ (specifications->manifest '( + "direnv" "glibc-locales" "git-lfs" "sshfs" diff --git a/Console.org b/Console.org index c2f692d..1150673 100644 --- a/Console.org +++ b/Console.org @@ -510,6 +510,10 @@ function e eval $EDITOR $argv end #+end_src +** direnv +#+begin_src fish +direnv hook fish | source +#+end_src * Nushell :PROPERTIES: :header-args+: :tangle ./.config/nu/config.toml :comments link @@ -859,6 +863,7 @@ key_bindings: | sshfs | Mount stuff over SSH | | git-lfs | | | glibc-locales | | +| direnv | | ** ripgrep config Occasionally I can't exclude certain files from ripgrep via the VCS settings, so here is a simple config to ignore certain files globally.