From 186e8db249216bcea84d776a8b050fda98f53efa Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Thu, 11 Sep 2025 09:28:12 -0500 Subject: [PATCH] nix: expose branch, branchd, and link_ignored via writeShellScriptBin; refactor branch logic --- common/general/shell/common.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/general/shell/common.nix b/common/general/shell/common.nix index b78ebe4..baa7977 100644 --- a/common/general/shell/common.nix +++ b/common/general/shell/common.nix @@ -25,6 +25,17 @@ with lib; hdparm speedtest-cli lf + + # Build script bins from repo scripts + (pkgs.writeShellScriptBin "branch" ''#!/usr/bin/env bash +. ${./branch.sh} +branch "$@" +'') + (pkgs.writeShellScriptBin "branchd" ''#!/usr/bin/env bash +. ${./branch.sh} +branchd "$@" +'') + (pkgs.writeShellScriptBin "link_ignored" (builtins.readFile ./link_ignored.sh)) ]; environment.shellAliases = { @@ -53,6 +64,7 @@ with lib; gcm = "git commit -m"; stashes = "git stash list"; + # ripgrep rg = "rg --no-ignore"; rgf = "rg --files --glob '!/nix/store/**' 2>/dev/null | rg";