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";