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:
- installs system packages with Homebrew
- sets the shell to zsh
- configures terminals Ghostty and Warp
- symlinks dotfiles from the repo to
$HOME - installs Go and Rust
- installs Go tools: deadcode, godoc, goimports, gopls
- installs language servers for Bash, Go, HTML, Lua, TypeScript
- installs the tsgo typechecker and the dprint formatter as pinned single binaries
- installs CLIs: awscli, bat, cb, fd, fzf, gh, git, ripgrep, tree, ubi
- installs pgfmt, my SQL formatter
- sets up Neovim with LSP, completion, fuzzy-finding
- starts Postgres dev and test clusters
No JavaScript runtime
The machine has no node, npm, or bun. tsgo, dprint, esbuild's Go API, and native language servers cover what those ran. See web / no js runtime for the native toolchain.