nix: expose branch, branchd, and link_ignored via writeShellScriptBin; refactor branch logic

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-09-11 09:28:12 -05:00
parent 752310e386
commit 186e8db249

View file

@ -25,6 +25,17 @@ with lib;
hdparm hdparm
speedtest-cli speedtest-cli
lf 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 = { environment.shellAliases = {
@ -53,6 +64,7 @@ with lib;
gcm = "git commit -m"; gcm = "git commit -m";
stashes = "git stash list"; stashes = "git stash list";
# ripgrep # ripgrep
rg = "rg --no-ignore"; rg = "rg --no-ignore";
rgf = "rg --files --glob '!/nix/store/**' 2>/dev/null | rg"; rgf = "rg --files --glob '!/nix/store/**' 2>/dev/null | rg";