From 7ea972ab733e476f346aa6b71a35a4abe1059500 Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Mon, 20 Sep 2021 11:40:40 +0800 Subject: [PATCH] fish: direnv hook --- .config/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 637e386..3a74162 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -10,3 +10,8 @@ if test -f ~/.config/fish/config_local.fish source ~/.config/fish/config_local.fish end + +# TODO: migrate .addpath and .exportenvs to direnv :D +if command -sq direnv > /dev/null + direnv hook fish | source +end