1 { lib, stdenv, fetchFromGitHub }:
3 # To make use of this plugin, need to add
4 # programs.zsh.interactiveShellInit = ''
5 # source ${pkgs.zsh-command-time}/share/zsh/plugins/command-time/command-time.plugin.zsh
6 # ZSH_COMMAND_TIME_COLOR="yellow"
7 # ZSH_COMMAND_TIME_MIN_SECONDS=3
8 # ZSH_COMMAND_TIME_ECHO=1
12 version = "2018-04-30";
13 pname = "zsh-command-time";
15 src = fetchFromGitHub {
17 repo = "zsh-command-time";
18 rev = "afb4a4c9ae7ce64ca9d4f334a79a25e46daad0aa";
19 sha256 = "1bvyjgz6bhgg1nwr56r50p6fblgah6yiql55pgm5abnn2h876fjq";
26 install -Dm0444 $src/command-time.plugin.zsh --target-directory=$out/share/zsh/plugins/command-time
30 description = "Plugin that output time: xx after long commands";
31 homepage = "https://github.com/popstas/zsh-command-time";
32 license = licenses.mit;
33 platforms = platforms.unix;