mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Invert the docs convention so the Mintlify-published site lives under docs/public/ and internal artifacts (strategy docs, brainstorms, plans, etc.) sit at docs/ root or docs/internal/. Tools that default to writing into docs/ now land in the catch-all instead of leaking into the published tree. - Move Mintlify content (administration/, agents/, api-reference/, changelog/, core-concepts/, examples/, execution/, getting-started/, human-tools/, integrations/, languages/, reference/, tutorials/, workflows/, images/, logo/, docs.json, favicon.svg, dot-highlight.js) into docs/public/. - Collapse docs-internal/ into docs/internal/. - Update Rust path references (fabro-api/build.rs, fabro-server, fabro-dev), TypeScript generator arg, CI path filters, clippy.toml reasons, AGENTS.md/CLAUDE.md, and README.md image refs. Mintlify dashboard project root must be updated to docs/public/ in a follow-up. .mintignore move/trim and .claude/skills/ updates land in a separate commit.
70 lines
1.1 KiB
Text
70 lines
1.1 KiB
Text
---
|
|
title: "Shell Completions"
|
|
description: "Set up tab completion for the fabro CLI in your shell"
|
|
---
|
|
|
|
The `fabro completion` command generates shell completion scripts for tab-completing commands, flags, and arguments.
|
|
|
|
## Bash
|
|
|
|
Add to your `~/.bashrc`:
|
|
|
|
```bash
|
|
eval "$(fabro completion bash)"
|
|
```
|
|
|
|
Or generate a file and source it:
|
|
|
|
```bash
|
|
fabro completion bash > ~/.local/share/bash-completion/completions/fabro
|
|
```
|
|
|
|
## Zsh
|
|
|
|
Add to your `~/.zshrc` (before `compinit`):
|
|
|
|
```bash
|
|
eval "$(fabro completion zsh)"
|
|
```
|
|
|
|
Or generate a file:
|
|
|
|
```bash
|
|
fabro completion zsh > "${fpath[1]}/_fabro"
|
|
```
|
|
|
|
You may need to run `compinit` or start a new shell session for changes to take effect.
|
|
|
|
## Fish
|
|
|
|
```bash
|
|
fabro completion fish | source
|
|
```
|
|
|
|
Or persist to the completions directory:
|
|
|
|
```bash
|
|
fabro completion fish > ~/.config/fish/completions/fabro.fish
|
|
```
|
|
|
|
## PowerShell
|
|
|
|
Add to your PowerShell profile:
|
|
|
|
```powershell
|
|
fabro completion powershell | Out-String | Invoke-Expression
|
|
```
|
|
|
|
## Elvish
|
|
|
|
```bash
|
|
eval (fabro completion elvish | slurp)
|
|
```
|
|
|
|
## Supported shells
|
|
|
|
Run `fabro completion --help` to see all supported shells:
|
|
|
|
```bash
|
|
fabro completion --help
|
|
```
|