diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2022-08-12 23:45:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2022-08-12 23:45:00 -0500 |
commit | 0aa1c74387b4111aff74f00861ec0506f81557b6 (patch) | |
tree | 3bce9c43c8c487ccefdddaec1c04b042478678d9 /pkgs/tools/misc/tmuxp | |
parent | e64306119cede2bdde3560a09f6c5a9cff71ee48 (diff) |
tmuxp: install completions
Diffstat (limited to 'pkgs/tools/misc/tmuxp')
-rw-r--r-- | pkgs/tools/misc/tmuxp/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/misc/tmuxp/default.nix b/pkgs/tools/misc/tmuxp/default.nix index 84a4519c0ea50..14e5da0702eb6 100644 --- a/pkgs/tools/misc/tmuxp/default.nix +++ b/pkgs/tools/misc/tmuxp/default.nix @@ -1,4 +1,4 @@ -{ lib, python3Packages }: +{ lib, python3Packages, installShellFiles }: let pypkgs = python3Packages; @@ -21,6 +21,8 @@ pypkgs.buildPythonApplication rec { # No tests in archive doCheck = false; + nativeBuildInputs = [ installShellFiles ]; + propagatedBuildInputs = with pypkgs; [ click colorama @@ -28,6 +30,13 @@ pypkgs.buildPythonApplication rec { libtmux ]; + postInstall = '' + installShellCompletion --cmd tmuxp \ + --bash <(_TMUXP_COMPLETE=bash_source $out/bin/tmuxp) \ + --fish <(_TMUXP_COMPLETE=fish_source $out/bin/tmuxp) \ + --zsh <(_TMUXP_COMPLETE=zsh_source $out/bin/tmuxp) + ''; + meta = with lib; { description = "Manage tmux workspaces from JSON and YAML"; homepage = "https://tmuxp.git-pull.com/"; |