Skip to content

Commit

Permalink
nixos/fzf: ensure fzf init script is evaluated after bash completions…
Browse files Browse the repository at this point in the history
… and before aliases
  • Loading branch information
eclairevoyant committed Apr 10, 2024
1 parent 57d9746 commit 42f4c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/programs/fzf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
let
inherit (lib) maintainers;
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf mkRemovedOptionModule;
inherit (lib.modules) mkAfter mkIf mkRemovedOptionModule;
inherit (lib.options) mkEnableOption mkPackageOption;
inherit (lib.strings) optionalString;

Expand Down Expand Up @@ -33,7 +33,7 @@ in
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];

programs.bash.interactiveShellInit = ''
programs.bash.promptPluginInit = mkAfter ''
eval "$(${getExe cfg.package} --bash)"
'';

Expand Down

0 comments on commit 42f4c8e

Please sign in to comment.