summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-03-06 10:14:19 +0100
committerAlan Pearce2023-03-06 10:14:19 +0100
commit56cb1b726f264046d94903d73899c953aa8e2cc9 (patch)
tree7a1540c88540c8927b4475154015bd2020d4270b /user
parentc19a6de84eec1bd5f024fa1bc62dc43e9a99fd75 (diff)
downloadnixfiles-56cb1b726f264046d94903d73899c953aa8e2cc9.tar.lz
nixfiles-56cb1b726f264046d94903d73899c953aa8e2cc9.tar.zst
nixfiles-56cb1b726f264046d94903d73899c953aa8e2cc9.zip
zsh: replace cd-gitroot with simple command
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix14
1 files changed, 2 insertions, 12 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index af8807a5..a43dbcf4 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -62,16 +62,6 @@ in {
 
     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 @@ in {
       lla = "lal";
       llr = "ll -t";
 
-      cg = "cd-gitroot";
-      cdg = "cd-gitroot";
+      cg = "cd $(git root)";
+      cdg = "cd $(git root)";
 
       https = "http --default-scheme https";