forked from mirrors/nixpkgs
nodejs: add bash completions for npm
This commit is contained in:
parent
c316dd1cc7
commit
a50fc480c3
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue