Pi 的配置、擴充、平台設定和 API 參考。

外殼別名

Pi 以非互動模式 (bash -c) 運行 bash,預設不擴展別名。

若要啟用 shell 別名,請新增至 ~/.pi/agent/settings.json

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

調整路徑(~/.zshrc~/.bashrc等)以符合您的 shell 配置。