nodejs: add bash completions for npm
This commit is contained in:
parent
c316dd1cc7
commit
a50fc480c3
|
@ -58,6 +58,11 @@ in
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
paxmark m $out/bin/node
|
paxmark m $out/bin/node
|
||||||
PATH=$out/bin:$PATH patchShebangs $out
|
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 = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue