Command Corrections provides auto-correct suggestions on previously run commands to catch typos, and forgotten flags, and fix general console errors. This feature was built on top of the open source project nvdn/thefuck.
Here are some examples that the Warp team usually finds Command Corrections useful for:
- Misspelled commands
gti checkout myBranchName->
git checkout myBranchName
- Missing flags
git push –set-upstream myBranchName
- Add permissions
chmod +x ./script && ./script
- Command Corrections is enabled by default. You can disable Command Corrections by going to
Settings > Features> toggle “Suggest corrected commands”.
- After an incorrect command is run, a panel with the corrected command suggestion appears above the Input Editor.
CLICKor press the
RIGHTarrow to insert the suggestion.
Command Corrections Demo