forked from mirrors/nixpkgs
02e8a36df1
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" ]; }; } ```
27 lines
713 B
Nix
27 lines
713 B
Nix
{ 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 ];
|
|
};
|
|
}
|