Getting started
Install
mia runs on macOS and Linux and needs git and tmux. Environments also need podman or docker.
go install github.com/emusoi/mia-core/cmd/mia@latestAdd this to your shell's rc file, for mia switch and completion
(bash and fish work too):
eval "$(mia shell-init zsh)"Check the installation and repository setup:
mia doctor
mia doctor --json # the same checks for automationA failing required check exits non-zero. Gateway and HTTPS notes are non-fatal; direct HTTP needs no browser proxy or trusted certificate.
The words
| word | means |
|---|---|
| worktree | a checkout of your repository in its own directory |
| name | a worktree's name: a place, like monduli, easy to remember; it never changes |
| session | the worktree's tmux session, mia-<name> |
| stack | several branches sharing one worktree, each on the one below |
| environment | a container where a worktree's code runs |
| machine | where environments run: this computer, or one you can ssh to |
| plugin | a program named mia-<name> that adds to mia |
Anywhere mia takes a worktree, you can give its name, its path, or its branch.
A first worktree
In any git repository:
mia new due-datesmonduli — due-dates in a worktree of its own
/Users/you/src/shop.mondulimia shell monduli # its tmux session
mia switch monduli # cd there
mia ls # every worktree
mia radar # find any worktree, or make oneSettings for a repository
mia configopens .git/mia/config.toml. For example, to make every new worktree ready
to work in:
clone = ["node_modules"]
setup = ["npm", "install"]mia keeps its own state in .git/mia and ~/.config/mia, never in your files.
To share project settings, commit a .mia.toml in the main checkout instead.
Precedence is user global, then committed project, then local overrides.
mia config show # effective TOML
mia config show --json # the same settings for scripts
mia config validate # parse and check all three filesThe one exception is mia dev, and only
when you ask.