Ask pi for shell commands without leaving your terminal.
- pi - AI coding agent
jq(optional, for environment caching)
curl -sL https://gist.github.com/YOUR_GIST_ID/raw/howdoi -o ~/bin/howdoi
chmod +x ~/bin/howdoihowdoi "install gh on manjaro"
howdoi "count scala lines"
howdoi "restart docker on ubuntu"- Caches your environment (distro, package managers) on first run
- Calls pi with your question + environment context
- Returns a single command with explanation and alternatives
sudo pacman -S github-cli
Explanation:
- sudo - run with root privileges
- pacman -S - install from repositories
- github-cli - the package name
Alternatives:
- yay -S github-cli - from AUR
- git clone ... - build from source
- Wrap your query in quotes if it contains special characters:
howdoi "install on manjaro?" - First run is slightly slower (model cold start)
- Subsequent runs are faster (cached environment)