Skip to content

Instantly share code, notes, and snippets.

@dmax1447
dmax1447 / n + zsh + nvmrc
Created March 30, 2023 07:18 — forked from rodush/n + zsh + nvmrc
Code snippet to enable switching of the node js environment based on configuration from the `.nvmrc` file
# Put this somewhere in the ~/.zshrc file
load-nvmrc() {
local nvmrc_path="$(pwd -P)/.nvmrc"
if [[ -a "$nvmrc_path" ]]; then
local nvmrc_node_version=$(cat "${nvmrc_path}")
if [ "$nvmrc_node_version" = "N/A" ]; then
nvm latest
@dmax1447
dmax1447 / js-task-1.md
Created April 15, 2019 09:29 — forked from codedokode/js-task-1.md
Задания на яваскрипт (простые)