about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-15T22·07+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-17T10·56+0000
commit2640397131f2364f8b071d288f2b5056caad87b3 (patch)
treef344f2bfd0ed5691ff1415975dfa12296498fd0d
parent788edf5e2f116f35b731eaa55a0298abad091fad (diff)
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.
-rw-r--r--configs/shared/.config/fish/config.fish8
1 files changed, 0 insertions, 8 deletions
diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish
index 8b22a3bffb16..2b6126461bcb 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 '<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