Mikołaj Lercher 2025-11-25 14:04:20 +01:00 committed by GitHub
parent 381f4f8a3a
commit 295d90e22d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View file

@ -23,6 +23,8 @@ in
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption { inherit config; };
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
enableNushellIntegration = lib.hm.shell.mkNushellIntegrationOption { inherit config; };
};
config = lib.mkIf cfg.enable {
@ -65,5 +67,9 @@ in
${wrapper} $argv
end
'';
programs.nushell.settings.hooks.command_not_found = lib.mkIf cfg.enableNushellIntegration (
lib.hm.nushell.mkNushellInline "source ${cfg.package}/etc/profile.d/command-not-found.nu"
);
};
}