Skip to content

Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

772 B
Raw Blame

Shell Aliases

Source: https://pi.dev/docs/latest/shell-aliases

Reviewed against Pi 0.99.2 on 2026-09-30.

Pi normally runs a separate non-interactive bash -c for each built-in Bash or !/!! command. To use aliases, create a Bash-compatible ~/.bash_aliases:

alias ll='ls -la'
alias gs='git status --short'

Then configure ~/.pi/agent/settings.json:

{
  "shellCommandPrefix": "shopt -s expand_aliases\nsource ~/.bash_aliases"
}

Run /reload, then !ll. The prefix runs before every Bash command. Do not parse/evaluate arbitrary alias lines from .zshrc or source a zsh configuration into Bash. Configure shellPath when Bash is unavailable; shopt will fail under a sh fallback. Extensions replacing the shell own their setup.