I don’t speak bash.
But I know what I want.Just press Alt+D —
and get the damn command.
Minimalism for the linux shell.

Get the Linux command from a casual instruction.
Alt+D
None.
curl -fsSL https://raw.githubusercontent.com/EasternJournalist/damn/refs/heads/master/install.sh -o /tmp/install.sh && bash /tmp/install.sh && source ~/.bashrc
You will need an API key to use the AI models.
If you don't have one, no worry. Gemini and Doubao offer free credits enough for daily damn.
Choose one of the following APIs and click the link to get an API key:
API Service | Default Model | Environment Variable Name |
---|---|---|
OpenAI GPT | gpt-4o-mini |
OPENAI_API_KEY |
Google Gemini | gemini-2.5-flash-preview-05-20 |
GEMINI_API_KEY |
ByteDance Doubao | doubao-1-5-pro-32k-250115 |
DOUBAO_API_KEY |
Then you can add the key to your ~/.bashrc
file as a user environment variable, for example:
echo "export OPENAI_API_KEY=XXXX-XXXX-XXXX" >> ~/.bashrc; source ~/.bashrc