cmd / laptop

I maintain a laptop repo that configures a macOS machine as a software development environment.

Install

Clone onto laptop:

export LAPTOP="$HOME/laptop"
git clone https://github.com/croaky/laptop.git $LAPTOP
cd $LAPTOP

Review:

less laptop.sh

Run:

./laptop.sh

What it sets up

The script is idempotent. I run it most workday mornings. I test it on the latest macOS on Apple Silicon. It:

No JavaScript runtime

The machine has no node, npm, or bun. The tools that read TypeScript are native binaries: tsgo typechecks, dprint formats, and a Go program drives esbuild through its Go API. See CDN.

The standard language servers publish only as npm packages, so I replaced them:

The nvim-treesitter install step runs tree-sitter generate, which reads a grammar.js. --js-runtime native reads it with the QuickJS engine in the CLI. See vim / tree-sitter grammar.

← All articles