fish-install-2

0.4.0 • Public • Published

npm

fish-install-2

Unobtrusively install Fish functions into the shell.

No config adjustment required. $fish_function_path is modified instead.

CLI

fish-install [install] $directory

Install $directory as a new Fish search path.

fish-install remove $directory

Remove $directory (all occurrences) from $fish_function_path.

fish-install list

List installed directories.

API

fishInstall(path, [cb(err)])

fishInstall.install(path, [cb(err)])

path — directory with functions to install.

Note: functions themselves are not copied anywhere, so the directory should better be persistent.

fishInstall.remove(path, [cb(err)])

path — directory to remove from $fish_function_path.

fishInstall.list([cb(err)])

List installed paths.

Publishing Fish functions to npm

  1. Install fish-install-2 as a dependency.
  2. Put your functions to a separate directory (say functions).
  3. Add the following to package.json:
"scripts": {
  "install": "fish-install functions",
  "uninstall": "fish-install remove functions"
}

Install

As a set-up utility for functions:

npm install fish-install-2

As a system-wide command line utility:

npm install -g fish-install-2

License

MIT

Package Sidebar

Install

npm i fish-install-2

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

6.76 kB

Total Files

8

Last publish

Collaborators

  • sodomite