Skip to content

Commit

Permalink
Improved install script
Browse files Browse the repository at this point in the history
  • Loading branch information
abejfehr committed Feb 17, 2022
1 parent 702b3ba commit ca4540c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin
.DS_Store
TODO.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ⚡️ Fast nvm switcher

Is your nvm slow? This repository provides some suggestions for speeding up nvm in your shell.
Is your nvm slow? This repository provides some suggestions (and a utility) for speeding up nvm in your shell.

## Speeding up a basic installation

Expand Down Expand Up @@ -32,7 +32,7 @@ function nvm() {
For the zsh shell hook that automatically switches node versions on directory change, you can simply start by downloading the `resolve_node_version` binary to your `.nvm` folder:

```bash
(cd $HOME/.nvm/ && curl -L -O https://github.com/abejfehr/fast-nvm-switcher/releases/download/0.1.3/resolve_node_version && chmod +x $HOME/.nvm/resolve_node_version)
curl -o- https://raw.githubusercontent.com/abejfehr/fast-nvm-switcher/v0.1.4/install.sh | bash
```

And add a relatively small hook into your `.zshrc` file:
Expand Down
5 changes: 0 additions & 5 deletions build

This file was deleted.

3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

go build -o ./bin/ resolve_node_version.go
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd $NVM_DIR

curl -L -O https://github.com/abejfehr/fast-nvm-switcher/releases/download/0.1.4/resolve_node_version

chmod +x $NVM_DIR/resolve_node_version

0 comments on commit ca4540c

Please sign in to comment.