nix: expose branch, branchd, and link_ignored via writeShellScriptBin; refactor branch logic
This commit is contained in:
parent
752310e386
commit
186e8db249
1 changed files with 12 additions and 0 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue