lab: generate and install zsh completion
Env variables are set to dummy values so `lab` doesn't get stuck trying to helpfully interact with user for initial configuration.
This commit is contained in:
parent
3b7c3cbdd0
commit
3d8170098f
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ buildGoPackage rec {
|
|||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/zsh/site-functions
|
||||
LAB_CORE_HOST=a LAB_CORE_USER=b LAB_CORE_TOKEN=c \
|
||||
$out/bin/lab completion zsh > $out/share/zsh/site-functions/_lab
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab";
|
||||
homepage = https://zaquestion.github.io/lab;
|
||||
|
|
Loading…
Reference in a new issue