Utensil's Zettelkasten-style forest of evergreen notes on math and tech.
utensil.tngl.sh/forest/
1#!/bin/bash
2
3# install nvm and node first
4# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
5# source ~/.bashrc or source ~/.zshrc
6# nvm ls-remote
7# nvm install v22.9.0
8
9# generate a randome string less than 32 characters
10RANDOM_ID=$(head -c 16 /dev/urandom | xxd -p | head -c 16)
11
12git clone https://github.com/utensil/vscode-forester.git "/tmp/vscode-forester-$RANDOM_ID"
13cd "/tmp/vscode-forester-$RANDOM_ID" || exit
14git checkout dev
15npm install
16
17# npm run compile
18
19# https://stackoverflow.com/a/54409592/200764
20npm install -g vsce
21yes|npx vsce package
22
23# requires https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
24code --install-extension "/tmp/vscode-forester-$RANDOM_ID/vscode-forester-0.0.7-dev-uts.vsix"
25# echo "run this to clean up: rip /tmp/vscode-forester-$RANDOM_ID"
26rip "/tmp/vscode-forester-$RANDOM_ID"