From 2640397131f2364f8b071d288f2b5056caad87b3 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 15 Jan 2020 22:07:00 +0000 Subject: [PATCH] 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 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. --- configs/shared/.config/fish/config.fish | 8 -------- 1 file changed, 8 deletions(-) diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish index 8b22a3bff..2b6126461 100644 --- a/configs/shared/.config/fish/config.fish +++ b/configs/shared/.config/fish/config.fish @@ -55,10 +55,6 @@ # Remove the default greeting from fish set fish_greeting "" -function nix_find - nix-build '' --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