Skip to content

Installation

Terminal window
curl -fsSL https://codehead.sh/install | sh

The script downloads the latest release for your system from GitHub releases, checks its sha256 (and its signed build provenance, when gh is logged in) and installs codehead into ~/.local/bin. No sudo. Set CODEHEAD_INSTALL_DIR for another directory.

A given version:

Terminal window
curl -fsSL https://codehead.sh/install | sh -s -- 0.2.31

Every commit on main that passes CI is a release. codehead checks for a newer release once per day in the background, and prints one line when it quits. To update:

Terminal window
codehead --update

Set CODEHEAD_NO_UPDATE_CHECK=1 to turn the check off.

Terminal window
git clone https://github.com/hansfuchs/codehead
cd codehead
just install # or: cargo install --locked --path .

Delete the binary. Drafts, history and the update cache live in ~/.cache/codehead, the config in ~/.config/codehead.toml.

Terminal window
rm ~/.local/bin/codehead