fish-install
v0.2.0
Published
Install Fish functions from directories
Downloads
18
Maintainers
Readme
fish-install
Unobtrusively install Fish functions into the shell.
No config adjustment required. $fish_function_path
is modified instead.
CLI
fish-install [install] $directory
This line installs $directory
as a new Fish search path.
fish-install remove $directory
This line removes $directory
(all occurrences) from $fish_function_path
.
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
.
Publishing Fish functions to npm
- Install
fish-install
as a dependency. - Put your functions to a separate directory (say
functions
). - 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
As a system-wide command line utility:
npm install -g fish-install
License
MIT