summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/shells/fish/plugins/default.nix2
-rw-r--r--pkgs/shells/fish/plugins/z.nix23
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix
index b1dba3142fd25..b367c521170ff 100644
--- a/pkgs/shells/fish/plugins/default.nix
+++ b/pkgs/shells/fish/plugins/default.nix
@@ -43,6 +43,8 @@ lib.makeScope newScope (self: with self; {
   sponge = callPackage ./sponge.nix { };
 
   tide = callPackage ./tide.nix { };
+
+  z = callPackage ./z.nix { };
 } // lib.optionalAttrs config.allowAliases {
   autopair-fish = self.autopair; # Added 2023-03-10
 })
diff --git a/pkgs/shells/fish/plugins/z.nix b/pkgs/shells/fish/plugins/z.nix
new file mode 100644
index 0000000000000..207c68a43d76b
--- /dev/null
+++ b/pkgs/shells/fish/plugins/z.nix
@@ -0,0 +1,23 @@
+{ lib
+, buildFishPlugin
+, fetchFromGitHub
+,
+}:
+buildFishPlugin rec {
+  pname = "z";
+  version = "unstable-2022-04-08";
+
+  src = fetchFromGitHub {
+    owner = "jethrokuan";
+    repo = pname;
+    rev = "85f863f20f24faf675827fb00f3a4e15c7838d76";
+    sha256 = "sha256-+FUBM7CodtZrYKqU542fQD+ZDGrd2438trKM0tIESs0=";
+  };
+
+  meta = with lib; {
+    description = "Pure-fish z directory jumping";
+    homepage = "https://github.com/jethrokuan/z";
+    license = licenses.mit;
+    maintainers = with maintainers; [ Scrumplex ];
+  };
+}