bash: rename aliases for some git utils
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Sat, 25 Nov 2023 13:57:43 +0000 (14:57 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Fri, 1 Dec 2023 22:57:50 +0000 (23:57 +0100)
home-manager/profiles/bash.nix

index 191b6613da4ebfada87e551e93ce67a1945331d6..13a77dbce7ad34cc4348716755499bc8bcf8009c 100644 (file)
@@ -8,11 +8,11 @@ with lib;
       black-on-white = "echo -e '\\033]11;black\\007\\033]10;white\\007'";
       c = "bat";
       cl = "clear";
-      eic = "edit-in-commit";
-      eigg = "edit-in-git-grep";
       emacs = "emacsclient --create-frame";
       g = "git";
+      ge = "git-edit-commit";
       gg = "git grep";
+      gge = "git-grep-edit";
       grep = "grep --color";
       j = "sudo journalctl -u";
       jb = "sudo journalctl -b";
@@ -160,8 +160,8 @@ with lib;
         done |
         sort -nk1,1
       }
-      edit-in-commit () { $EDITOR $(git diff-tree --no-commit-id --name-only -r "$@"); }
-      edit-in-git-grep () { $EDITOR $(git grep --name-only --recursive "$@"); }
+      git-edit-commit () { $EDITOR $(git diff-tree --no-commit-id --name-only -r "$@"); }
+      git-grep-edit () { $EDITOR $(git grep --name-only --recursive "$@"); }
 
       # Recursively mount not-mounted dataset,
       # loading their keys if needed.