Add better-git-branch script

This commit is contained in:
ItsDrike 2024-06-21 14:47:48 +02:00
parent 36db61f255
commit 41cd22ea33
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 76 additions and 1 deletions

View file

@ -1,4 +1,10 @@
{
pkgs,
...
}: let
scriptPkgs = (import ./bin {inherit pkgs;});
in {
programs.git = {
aliases = {
quickclone = "clone --single-branch --depth=1";
@ -48,7 +54,7 @@
bD = "branch --delete --force";
bm = "branch --move";
bM = "branch --move --force";
bb = "!~/.local/bin/scripts/cli/better-git-branch";
bb = "!${scriptPkgs.better-git-branch}/bin/better-git-branch";
r = "rebase";
ri = "rebase -i";