An open API service indexing awesome lists of open source software.

https://github.com/nerdo/barnacle


https://github.com/nerdo/barnacle

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# barnacle

An ohmyzsh plugin that automatically puts the npm modules for the current directory on your path.

### Pre-Requisites

* ohmyzsh (https://ohmyz.sh/)
* Go (https://go.dev/)

## Installation

Ensure your `go` binary path is in your $PATH, e.g.

```
PATH=$HOME/go/bin:$PATH
...
```

Install `barnacle` binary.

```
go install
```

Create a symlink from ohmyzsh's custom plugins to this repository.

```
ln -s ~/go/src/barnacle $ZSH_CUSTOM/plugins/barnacle
```

Load the plugin in your `~/.zshrc`.

```
# where ... are other plugins
plugins=(... barnacle ...)
```

Source your `~/.zshrc`.

```
source ~/.zshrc
```