Created
March 31, 2017 07:29
-
-
Save Superdanby/12b7b595029e576caf5caab442040c92 to your computer and use it in GitHub Desktop.
npm virtual environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curpath=`pwd` | |
| npmpath=`find $curpath -name .bin | head -n 1` | |
| cd $npmpath/../../ | |
| echo "New terminal in `pwd`" | |
| export PATH="$PATH:$npmpath" | |
| exec gnome-terminal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment