# Command Corrections

> Command Corrections provides auto-correct suggestions on previously run commands to catch typos and forgotten flags, and fix general console errors.

- 网址：https://funcoding.ai/agents/warp/terminal/entry/command-corrections/
- 来源：Warp 官方文档原文（英文），MIT 许可，同步于 2026-10-11
- 官方原文：https://docs.warp.dev/terminal/entry/command-corrections/

---
## What is it

This feature was built on top of the open-source project [nvbn/thefuck](https://github.com/nvbn/thefuck). Here are some examples that the Warp team usually finds Command Corrections useful for:

* Misspelled commands
  * `gti checkout myBranchName` -> `git checkout myBranchName`
  * `cd ap/sorce/executtor` -> `cd app/source/executor`
* Missing flags
  * `git push` -> `git push --set-upstream myBranchName`
* Add permissions
  * `./script` -> `chmod +x ./script && ./script`

## How to access it

* Command Corrections is enabled by default. You can disable Command Corrections by going to **Settings** > **Features** > **Terminal Input** > toggle “Suggest corrected commands”.
* After an incorrect command is run, a panel with the corrected command suggestion appears above the Input Editor. `CLICK` or press the `→` arrow to insert the suggestion.

## How it works

#### Command correction rules

| Command                                                       |
| ------------------------------------------------------------- |
| brew                                                          |
| cargo                                                         |
| cat                                                           |
| cd                                                            |
| chmod                                                         |
| conda                                                         |
| cp                                                            |
| docker                                                        |
| generic (command agnostic, e.g. misspelling executable name)  |
| git                                                           |
| go                                                            |
| grep                                                          |
| java                                                          |
| ls                                                            |
| mkdir                                                         |
| npm                                                           |
| pip                                                           |
| python                                                        |
| sed                                                           |
| sudo                                                          |
| yarn                                                          |
