https://github.com/nerdo/barnacle
https://github.com/nerdo/barnacle
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nerdo/barnacle
- Owner: nerdo
- Created: 2022-09-19T03:32:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T04:06:04.000Z (almost 4 years ago)
- Last Synced: 2025-12-26T23:56:03.359Z (7 months ago)
- Language: Go
- Size: 1.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```