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.
This commit is contained in:
William Carroll 2020-01-13 10:24:52 +00:00
parent fac128f00c
commit 2515304c77

View file

@ -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. # TODO: Debug why I couldn't get `fasd` to work with Nix and fish.
source (nix_find autojump)/share/autojump/autojump.fish source (nix_find autojump)/share/autojump/autojump.fish
# TODO: What is the difference between `source` and `eval` eval (direnv hook fish)
# direnv
source (direnv hook fish)
# Miscellaneous # Miscellaneous
abbr --add c xclip -selection clipboard -i abbr --add c xclip -selection clipboard -i