Skip to content

Instantly share code, notes, and snippets.

@gitaarik
Created March 1, 2016 11:58
Show Gist options
  • Save gitaarik/75a6b3a1bfe4a5af4f68 to your computer and use it in GitHub Desktop.
Save gitaarik/75a6b3a1bfe4a5af4f68 to your computer and use it in GitHub Desktop.
Alias to add the `node_modules/.bin/` directory to `$PATH` variable so that you can use executables from node modules.
alias npmbin='echo -e "Setting up npmbin with path:\n$(npm bin)"; export PATH=$(npm bin):$PATH'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment