[Pkg-javascript-devel] Bug#977792: nodejs: install bash-completion script

Kevin Locke kevin at kevinlocke.name
Sun Dec 20 23:14:44 GMT 2020


Package: nodejs
Version: 12.19.0~dfsg-1
Severity: wishlist

Dear Maintainer,

Node.js supports generating a programmable tab-completion script for
Bash by running `node --completion-bash`.[1]  It would be nice if the
nodejs package installed the script so that it would be used by Bash
whenever the bash-completion package is installed.  This could be done
by:

1. Generating debian/nodejs.bash-completion containing either:
  a. The output of `node --completion-bash` run during build.
  b. `eval "$(nodejs --completion-bash)"` to run node when loaded.
2. Installing debian/nodejs.bash-completion to 
   /usr/share/bash-completion/completions/node and 
   /usr/share/bash-completion/completions/nodejs, preferably using
   dh_bash-completion from the bash-completion package (which already in
   Build-Depends, although not currently used).

Thanks for considering,
Kevin

[1]: https://github.com/nodejs/node/pull/20713


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (990, 'testing-debug'), (990, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (101, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nodejs depends on:
ii  libc6      2.31-5
ii  libnode72  12.19.0~dfsg-1

Versions of packages nodejs recommends:
ii  ca-certificates  20200601
ii  nodejs-doc       12.19.0~dfsg-1

Versions of packages nodejs suggests:
pn  npm  <none>

-- no debconf information



More information about the Pkg-javascript-devel mailing list