Skip to content

Proto ​

Global proto toolchain configuration.

Installation ​

os/helpers/proto.sh installs proto (run automatically with the base profile and, on macOS, before the javascript and python profiles; on Debian also when linking dotfiles). It downloads the release tarball of the version pinned in the script from GitHub, checks it against the SHA-256 pinned next to it, and installs proto and proto-shim into ~/.proto/bin. No installer script is fetched. Builds are pinned for Linux and macOS, x86_64 and arm64; proto upgrade moves to newer releases afterwards.

Shell integration is managed by the same script, which adds the following block to ~/.zshrc if not already present:

sh
export PROTO_HOME="$HOME/.proto"
export PATH="$PROTO_HOME/shims:$PROTO_HOME/bin:$PATH"

Version pinning ​

All tool versions are declared in config/proto/.prototools, which is symlinked to ~/.proto/.prototools when dotfiles are installed. Setup scripts read this file automatically — no versions are hardcoded in any script.

Location ​

FileSymlinked to
config/proto/.prototools~/.proto/.prototools

Managed tools ​

Every tool is pinned to an exact version in .prototools, the source of truth for the numbers; the # renovate: comments there mark the pins Renovate is configured to bump. It bumps them together, in one "proto toolchain" pull request opened on Monday mornings (renovate.json).

ToolVersion
nodeExact version
npmbundled (ships with that Node)
bunExact version
pnpmExact version
yarnExact version
pythonExact version
goExact version

Settings ​

SettingValueDescription
auto-installtrueAutomatically install tools when missing
auto-cleantrueClean up old tool versions automatically
pin-latestglobalPin latest resolves globally
node.bundled-npmtrueBundle npm with the Node installation
npm.shared-globals-dirtrueShare npm global packages directory

Usage ​

sh
# Install all tools defined in .prototools
proto install

# List the configured tools and whether each is installed
proto status

# Check the configured tools for newer versions
proto outdated

# Upgrade proto itself (the tools move with .prototools)
proto upgrade