From 2515304c7796b3651c0cf5b724a82dc771d05128 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 13 Jan 2020 10:24:52 +0000 Subject: [PATCH] Prefer eval to source for direnv in config.fish Calling `source` on `(direnv hook fish)` was creating startup problems with fish. These problems leaked into a few of my Emacs file-searching commands as well, which was pretty irritating for awhile. I'm still unsure of the differences between `eval` and `source`. I'm moving on for now. --- configs/shared/.config/fish/config.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish index d6c8d934f..8b22a3bff 100644 --- a/configs/shared/.config/fish/config.fish +++ b/configs/shared/.config/fish/config.fish @@ -87,9 +87,7 @@ source (fzf-share)/key-bindings.fish && fzf_key_bindings # TODO: Debug why I couldn't get `fasd` to work with Nix and fish. source (nix_find autojump)/share/autojump/autojump.fish -# TODO: What is the difference between `source` and `eval` -# direnv -source (direnv hook fish) +eval (direnv hook fish) # Miscellaneous abbr --add c xclip -selection clipboard -i