Skip to content

Instantly share code, notes, and snippets.

@Superdanby
Created March 31, 2017 07:29
Show Gist options
  • Select an option

  • Save Superdanby/12b7b595029e576caf5caab442040c92 to your computer and use it in GitHub Desktop.

Select an option

Save Superdanby/12b7b595029e576caf5caab442040c92 to your computer and use it in GitHub Desktop.
npm virtual environment
#!/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