1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

zoxide: fix fzf bash-completion conflict

When zoxide initializes after fzf it causes fzf " ** " trigger to not
work.

To fix the issue we needed to make zoxide initialize earlier than fzf
but after bash-completion.

PR #5955
This commit is contained in:
Talha Can Havadar 2024-10-11 21:19:14 +00:00 committed by Robert Helgesson
parent 892a6443b7
commit fe56302339
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -68,9 +68,9 @@ in {
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
programs.bash.initExtra = mkIf cfg.enableBashIntegration (mkOrder 150 ''
eval "$(${cfg.package}/bin/zoxide init bash ${cfgOptions})"
'';
'');
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
eval "$(${cfg.package}/bin/zoxide init zsh ${cfgOptions})"