Skip to content

Instantly share code, notes, and snippets.

@pascaliske
Last active April 9, 2019 06:15
Show Gist options
  • Save pascaliske/1de67f463b307ba7372ac967ce80988d to your computer and use it in GitHub Desktop.
Save pascaliske/1de67f463b307ba7372ac967ce80988d to your computer and use it in GitHub Desktop.
Directory specific node versions with direnv and tj/n
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
NODE_VERSION="11.11.0"
export PATH="$(dirname "$(n bin "$NODE_VERSION" | awk '{$1=$1};1')"):$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment