erikkrieg / eksys

Nix system and user configuration for MacOS and NixOS hosts.
3 stars 0 forks source link

Better history search #4

Closed erikkrieg closed 1 year ago

erikkrieg commented 1 year ago

My config currently uses basic zsh history. Look into more powerful options!

erikkrieg commented 1 year ago

I realized that my history search '^r' was bad because another plugin was sneakily overwriting my fzf bindkey. See e629376e5f2a5ea750960189f7b4f40f313ec1c7

Unfortunately, I fixed this in a hacky way. Other options:

erikkrieg commented 1 year ago

I was able to find a less hack solution by changing when the zsh-vi-mode plugin initializes. Instead of using a precmd function, it now initializes when the file is sourced. I also changed the order of when zsh-vi-mode is sourced to ensure it is before fzf integrations is sourced.