nixos-container: Add bash completion for "nixos-container" command

This commit is contained in:
Matthias Beyer
2015-09-16 22:18:48 +02:00
parent 937741c9f3
commit a38d9d1ca8
2 changed files with 39 additions and 0 deletions

View File

@@ -12,6 +12,12 @@ let
perl = "${pkgs.perl}/bin/perl -I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl";
su = "${pkgs.shadow.su}/bin/su";
inherit (pkgs) utillinux;
postInstall = ''
t=$out/etc/bash_completion.d
mkdir -p $t
cp ${./nixos-container-completion.sh} $t/nixos-container
'';
};
# The container's init script, a small wrapper around the regular