nodejs: add bash completions for npm

This commit is contained in:
Jaka Hudoklin 2016-12-11 14:57:49 +01:00
parent c316dd1cc7
commit a50fc480c3
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ in
postInstall = ''
paxmark m $out/bin/node
PATH=$out/bin:$PATH patchShebangs $out
${optionalString enableNpm ''
mkdir -p $out/share/bash-completion/completions/
$out/bin/npm completion > $out/share/bash-completion/completions/npm
''}
'';
meta = {