all repos — nixfiles @ 56cb1b726f264046d94903d73899c953aa8e2cc9

System and user configuration, managed by nix and home-manager

zsh: replace cd-gitroot with simple command
Alan Pearce alan@alanpearce.eu
Mon, 06 Mar 2023 10:14:19 +0100
commit

56cb1b726f264046d94903d73899c953aa8e2cc9

parent

c19a6de84eec1bd5f024fa1bc62dc43e9a99fd75

1 files changed, 2 insertions(+), 12 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -62,16 +62,6 @@ }; 
     plugins = map mkZshPlugin [
       {
-        name = "cd-gitroot";
-        src = pkgs.fetchFromGitHub {
-          owner = "mollifier";
-          repo = "cd-gitroot";
-          rev = "66f6ba7549b9973eb57bfbc188e29d2f73bf31bb";
-          # date = 2020-06-04T19:40:14+09:00;
-          sha256 = "00aj9z3fa6ghjpz7s9cdqpfy4vh1v19z284p4f7xj0z40vrlbdx4";
-        };
-      }
-      {
         name = "agkozak-zsh-prompt";
         src = pkgs.fetchFromGitHub {
           owner = "agkozak";
@@ -113,8 +103,8 @@ lal = "ll -A";       lla = "lal";
       llr = "ll -t";
 
-      cg = "cd-gitroot";
-      cdg = "cd-gitroot";
+      cg = "cd $(git root)";
+      cdg = "cd $(git root)";
 
       https = "http --default-scheme https";