clanker-agent/packages/coding-agent/companion-out/docs/shell-aliases.md
2026-03-11 02:31:07 -04:00

13 lines
370 B
Markdown

# Shell Aliases
Companion runs bash in non-interactive mode (`bash -c`), which doesn't expand aliases by default.
To enable your shell aliases, add to `~/.companion/agent/settings.json`:
```json
{
"shellCommandPrefix": "shopt -s expand_aliases\neval \"$(grep '^alias ' ~/.zshrc)\""
}
```
Adjust the path (`~/.zshrc`, `~/.bashrc`, etc.) to match your shell config.