Skip to content

Commit

Permalink
zsh-command-time: init at 2017-05-09 (#32083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin authored and Mic92 committed Nov 27, 2017
1 parent d0f3035 commit 9216f5f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/shells/zsh-command-time/default.nix
@@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub }:

# To make use of this plugin, need to add
# programs.zsh.interactiveShellInit = ''
# source ${pkgs.zsh-command-time}/share/zsh-command-time/command-time.plugin.zsh
# ZSH_COMMAND_TIME_MIN_SECONDS=3
# ZSH_COMMAND_TIME_ECHO=1
# '';

stdenv.mkDerivation rec {
version = "2017-05-09";
name = "zsh-command-time-${version}";

src = fetchFromGitHub {
owner = "popstas";
repo = "zsh-command-time";
rev = "2111361cbc88c542c834fbab7802ae5ae8339824";
sha256 = "0hr9c7196wy9cg7vkmknszr2h446yvg9pqrq0rf3213kz074dhpg";
};

installPhase = ''
install -D $src/command-time.plugin.zsh --target-directory=$out/share/zsh-command-time
'';

meta = with stdenv.lib; {
description = "Plugin that output time: xx after long commands";
homepage = https://github.com/popstas/zsh-command-time;
license = licenses.mit;
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -5345,6 +5345,8 @@ with pkgs;

zsh-powerlevel9k = callPackage ../shells/zsh-powerlevel9k { };

zsh-command-time = callPackage ../shells/zsh-command-time { };

zstd = callPackage ../tools/compression/zstd { };
zstdmt = callPackage ../tools/compression/zstdmt { };

Expand Down

0 comments on commit 9216f5f

Please sign in to comment.