Install shell completions

This commit is contained in:
Serg Nesterov 2020-05-01 17:46:05 +03:00
parent 61396047dc
commit 7259b4ce12
No known key found for this signature in database
GPG Key ID: 7ED18DB77A86EE14

View File

@ -1,4 +1,4 @@
{ lib, buildRubyGem, ruby }:
{ lib, buildRubyGem, ruby, installShellFiles }:
# Cannot use bundleEnv because bundleEnv create stub with
# BUNDLE_FROZEN='1' environment variable set, which broke everything
@ -37,6 +37,12 @@ buildRubyGem rec {
propagatedBuildInputs = [ erubis thor xdg ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion $GEM_HOME/gems/${gemName}-${version}/completion/tmuxinator.{bash,zsh,fish}
'';
meta = with lib; {
description = "Manage complex tmux sessions easily";
homepage = "https://github.com/tmuxinator/tmuxinator";