Coder Social home page Coder Social logo

fish-install's Introduction

npm

fish-install

Dependency Status

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 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

As a system-wide command line utility:

npm install -g fish-install

License

MIT

fish-install's People

Contributors

eush77 avatar

Watchers

James Cloos avatar  avatar

fish-install's Issues

Incompatible with sudo npm install

If the module is installed in a directory the user has no write access to, $fish_function_path is not updated and Fish prompts this message:

fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the $XDG_CONFIG_HOME variable to a directory where the current user has write access.
+ /usr/lib/node_modules/fish-cat-highlighted/functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.