diff --git a/pkgs/shells/zsh/zsh-fzf-history-search/default.nix b/pkgs/shells/zsh/zsh-fzf-history-search/default.nix new file mode 100644 index 000000000000..c6d32f8d7612 --- /dev/null +++ b/pkgs/shells/zsh/zsh-fzf-history-search/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation { + pname = "zsh-fzf-history-search"; + version = "unstable-2023-03-08"; + + src = fetchFromGitHub { + owner = "joshskidmore"; + repo = "zsh-fzf-history-search"; + rev = "d1aae98ccd6ce153c97a5401d79fd36418cd2958"; + hash = "sha256-4Dp2ehZLO83NhdBOKV0BhYFIvieaZPqiZZZtxsXWRaQ="; + }; + + dontConfigure = true; + dontBuild = true; + strictDeps = true; + + installPhase = '' + runHook preInstall + + install -D zsh-fzf-history-search*.zsh --target-directory=$out/share/zsh-fzf-history-search + + runHook postInstall + ''; + + meta = { + description = "A simple zsh plugin that replaces Ctrl+R with an fzf-driven select which includes date/times"; + homepage = "https://github.com/joshskidmore/zsh-fzf-history-search"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ janik ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b84116bc6616..03e83e1b45e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15009,6 +15009,8 @@ with pkgs; zsh-command-time = callPackage ../shells/zsh/zsh-command-time { }; + zsh-fzf-history-search = callPackage ../shells/zsh/zsh-fzf-history-search { }; + zsh-vi-mode = callPackage ../shells/zsh/zsh-vi-mode { }; zsh-you-should-use = callPackage ../shells/zsh/zsh-you-should-use { };