about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2022-01-09 18:18:52 +0000
committerGitHub <noreply@github.com>2022-01-09 18:18:52 +0000
commit5d3c9ddee10930727dc5d1ddd0aae7d77dec667c (patch)
treea2cfb6d4c228f728b5c1c3fd35e2856fb2767189 /pkgs/shells
parenta8e211ef77205b7b204030dd0a65c5f1bf29fd75 (diff)
parent769340d3c0ed89c3400c4d3e1596a576785fbb24 (diff)
Merge pull request #153623 from sei40kr/zsh-history-search-multi-word
zsh-history-search-multi-word: init at unstable-2021-11-13
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-history-search-multi-word/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix b/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix
new file mode 100644
index 0000000000000..09d2136ea26cb
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix
@@ -0,0 +1,30 @@
+{ stdenvNoCC, lib, fetchFromGitHub }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "zsh-history-search-multi-word";
+  version = "unstable-2021-11-13";
+
+  src = fetchFromGitHub {
+    owner = "zdharma-continuum";
+    repo = "history-search-multi-word";
+    rev = "5b44d8cea12351d91fbdc3697916556f59f14b8c";
+    sha256 = "11r2mmy6bg3b6pf6qc0ml3idh333cj8yz754hrvd1sc4ipfkkqh7";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    plugindir="$out/share/zsh/${pname}"
+
+    mkdir -p "$plugindir"
+    cp -r -- history-* hsmw-* "$plugindir"/
+  '';
+
+  meta = with lib; {
+    description = "Multi-word, syntax highlighted history searching for Zsh";
+    homepage = "https://github.com/zdharma-continuum/history-search-multi-word";
+    license = with licenses; [ gpl3 mit ];
+    platforms = platforms.unix;
+  };
+}