Drop support for nix_find fish function

This function was causing problems with my Emacs. For example, when I ran
`wpc/find-file`, which is bound <leader>f and a KBD that I call frequently, the
internals would startup fish with my configuration file. Then `nix_find
autojump` would fail and the entire command would error. To make things worse,
the error was a bit opaque.

TODO: Why do certain commands `counsel-projectile-find-file` startup fish and
load my configuration file? I'd prefer it used something like bash and didn't
attempt to load a configuration file since that would most likely slow things
down.
This commit is contained in:
William Carroll 2020-01-15 22:07:00 +00:00
parent 788edf5e2f
commit 2640397131

View file

@ -55,10 +55,6 @@
# Remove the default greeting from fish
set fish_greeting ""
function nix_find
nix-build '<nixpkgs>' --no-build-output -A $argv[1]
end
# Prompt
function fish_prompt
set -l color_cwd
@ -83,10 +79,6 @@ end
# Setup fzf for fuzzily finding commands, files, directories
source (fzf-share)/key-bindings.fish && fzf_key_bindings
# Setup autojump for a frequency-based alternative to cd.
# TODO: Debug why I couldn't get `fasd` to work with Nix and fish.
source (nix_find autojump)/share/autojump/autojump.fish
eval (direnv hook fish)
# Miscellaneous