diff --git a/platforms/home-manager/modules/nmasur/presets/programs/noti.nix b/platforms/home-manager/modules/nmasur/presets/programs/noti.nix index e9b63929..4062b742 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/noti.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/noti.nix @@ -15,10 +15,21 @@ in config = lib.mkIf (cfg.enable && (pkgs.stdenv.isDarwin || config.services.dunst.enable)) { home.packages = [ pkgs.noti ]; - programs.fish.shellAbbrs = { - # Add noti for ghpr in Darwin - ghpr = lib.mkForce "gh pr create && sleep 3 && noti gh run watch"; - grw = lib.mkForce "noti gh run watch"; + programs.fish = { + shellAbbrs = { + # Add noti for ghpr in Darwin + ghpr = lib.mkForce "gh pr create && sleep 3 && noti gh run watch"; + grw = lib.mkForce "noti gh run watch"; + }; + functions = { + gh-run = { + body = + lib.mkForce # fish + '' + ${lib.getExe pkgs.zellij} action new-pane --start-suspended -- noti gh run watch + ''; + }; + }; }; }; }