Install
Homebrew (macOS)
Section titled “Homebrew (macOS)”brew install --cask josh-padnick/tap/twiggo install
Section titled “go install”go install github.com/josh-padnick/twig@latestFrom a release
Section titled “From a release”Download the tarball for your platform from the
releases page, unpack, and
put twig on your PATH.
Shell integration (recommended)
Section titled “Shell integration (recommended)”The tw function cd’s into a worktree in your current shell, something a
plain binary cannot do. Add to your shell config:
eval "$(twig shell-init zsh)"
# ~/.bashrceval "$(twig shell-init bash)"
# ~/.config/fish/config.fishtwig shell-init fish | sourcePrefer a different name? twig shell-init zsh --cmd j emits j() instead.
Verify
Section titled “Verify”twig doctorDoctor reports git, config, providers, openers, and the trust store, each
as an ok/warn/fail line.