LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-completion

generates shell completion scripts

TLDR

Print the completion script (same output for bash and zsh)
$ npm completion
copy
Load completion for the current bash session
$ source <(npm completion)
copy
Persist for bash
$ npm completion >> ~/.bashrc
copy
Persist for zsh (requires `compinit` to be loaded first)
$ npm completion >> ~/.zshrc
copy

SYNOPSIS

npm completion

DESCRIPTION

npm completion generates shell completion scripts. Enables tab completion for npm.The command outputs script to stdout. Append to shell rc file.

PARAMETERS

--help

Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Only bash and zsh are supported. The script will do nothing under other shells (fish, PowerShell). When used in zsh, `bashcompinit` must be active, which zsh's own `compinit` handles automatically in any modern setup. Reload the shell (or `source` the rc file) after appending.

HISTORY

npm completion provides shell integration for command-line tab completion.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid