about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-13T10·24+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-17T10·56+0000
commit2515304c7796b3651c0cf5b724a82dc771d05128 (patch)
tree05adfa8487ca0c67c9bcd46b0d7f7973dc1c5496
parentfac128f00c7f4d8ebecf656e02b42d393bc5678a (diff)
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.
-rw-r--r--configs/shared/.config/fish/config.fish4
1 files changed, 1 insertions, 3 deletions
diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish
index d6c8d934f51c..8b22a3bffb16 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