From d162df2515bd8331044da0215ee335010d3316f6 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 13 Jul 2026 09:49:14 -0400 Subject: [PATCH] use noti for gh run watch in zellij pane --- .../modules/nmasur/presets/programs/noti.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 + ''; + }; + }; }; }; }