Shell Aliases

Pi runs bash in non-interactive mode (bash -c), which doesn't expand aliases by default.

To enable your shell aliases, add to ~/.pi/agent/settings.json:

{
  "shellCommandPrefix": "shopt -s expand_aliases\neval \"$(grep '^alias ' ~/.zshrc)\""
}

Adjust the path (~/.zshrc, ~/.bashrc, etc.) to match your shell config.

This was unofficially built for personal use. No JavaScript is required, page loads are faster, and the styling is plain for better readability. For the official documentation, visit https://pi.dev/docs. The content of the docs is from the Pi repository and is licensed under the MIT License.