Skip to content

Install

Terminal window
brew install --cask josh-padnick/tap/twig
Terminal window
go install github.com/josh-padnick/twig@latest

Download the tarball for your platform from the releases page, unpack, and put twig on your PATH.

The tw function cd’s into a worktree in your current shell, something a plain binary cannot do. Add to your shell config:

~/.zshrc
eval "$(twig shell-init zsh)"
# ~/.bashrc
eval "$(twig shell-init bash)"
# ~/.config/fish/config.fish
twig shell-init fish | source

Prefer a different name? twig shell-init zsh --cmd j emits j() instead.

Terminal window
twig doctor

Doctor reports git, config, providers, openers, and the trust store, each as an ok/warn/fail line.