summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-01-21 16:11:56 +0100
committerGitHub <noreply@github.com>2020-01-21 16:11:56 +0100
commitb785f2a98a8287a00a7354b6fdec10c17b1f71e8 (patch)
treed331fa5daa96d0518e8b7d0a59099982757eaf75 /pkgs/shells
parenta7a85a015c4032f7ea84b964b6ee67900739997f (diff)
parent341097c8cf55dc0ccd178fc13866339546f6dd55 (diff)
downloadnixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar.gz
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar.bz2
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar.lz
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar.xz
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.tar.zst
nixpkgs-b785f2a98a8287a00a7354b6fdec10c17b1f71e8.zip
Merge pull request #65430 from pasqui23/zbd
 zsh-bd:init at 2018-07-04 
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-bd/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-bd/default.nix b/pkgs/shells/zsh/zsh-bd/default.nix
new file mode 100644
index 00000000000..b5b66af6ca3
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-bd/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub}:
+
+stdenv.mkDerivation rec {
+  pname = "zsh-bd";
+  version = "2018-07-04";
+
+  src = fetchFromGitHub {
+    owner = "Tarrasch";
+    repo = pname;
+    rev = "d4a55e661b4c9ef6ae4568c6abeff48bdf1b1af7";
+    sha256 = "020f8nq86g96cps64hwrskppbh2dapfw2m9np1qbs5pgh16z4fcb";
+  };
+
+  dontBuild = true;
+
+  installPhase = ''
+    mkdir -p $out/share/zsh-bd
+    cp {.,$out/share/zsh-bd}/bd.zsh
+    cd $out/share/zsh-bd
+    ln -s bd{,.plugin}.zsh
+  '';
+
+  meta = {
+    description = "Jump back to a specific directory, without doing `cd ../../..` ";
+    homepage = "https://github.com/Tarrasch/zsh-bd";
+    license = stdenv.lib.licenses.free;
+
+    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ stdenv.lib.maintainers.olejorgenb ];
+  };
+}