From 02e8a36df1c33253822a945ab6290960edf7d082 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 29 Jun 2019 12:14:42 +0200 Subject: zsh-you-should-use: init at 1.1.0 Simple zsh plugin that reminds you to use existing aliases. With `oh-my-zsh` it can be installed like this: ``` { programs.zsh.ohMyZsh = { customPkgs = [ pkgs.zsh-you-should-use ]; plugins = [ "you-should-use" ]; }; } ``` --- pkgs/shells/zsh/zsh-you-should-use/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/shells/zsh/zsh-you-should-use/default.nix diff --git a/pkgs/shells/zsh/zsh-you-should-use/default.nix b/pkgs/shells/zsh/zsh-you-should-use/default.nix new file mode 100644 index 000000000000..c44483d3744f --- /dev/null +++ b/pkgs/shells/zsh/zsh-you-should-use/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "zsh-you-should-use"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "MichaelAquilina"; + repo = pname; + rev = version; + sha256 = "0fig5ralagi5jajk7gdm52jvwql17qk9cd6j98qsndvckb26a753"; + }; + + dontBuild = true; + + installPhase = '' + install -D you-should-use.plugin.zsh $out/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/MichaelAquilina/zsh-you-should-use; + license = licenses.gpl3; + description = "ZSH plugin that reminds you to use existing aliases for commands you just typed"; + maintainers = with maintainers; [ ma27 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54f2cab11d48..379a30e66ea4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6987,6 +6987,8 @@ in zsh-command-time = callPackage ../shells/zsh/zsh-command-time { }; + zsh-you-should-use = callPackage ../shells/zsh/zsh-you-should-use { }; + zssh = callPackage ../tools/networking/zssh { }; zstd = callPackage ../tools/compression/zstd { }; -- cgit 1.4.1