English | 简体中文
Tips:
- Typo can fix commands before you press Enter. You do not need to run the command first and correct it afterward.
- If a correction is inaccurate, use
typo learnto add your own rule, or open an Issue / PR.- Typo supports both top-level command fixes and subcommand fixes, such as
gti statuus.
Includes common Linux and macOS commands such as git, docker, brew, apt, and more.
gti <Esc, Esc>
git
brewd <Esc, Esc>
brewCovers subcommands such as
git status,git commit,docker images, and more.
gti stauts <Esc, Esc>
git status
docker imagess <Esc, Esc>
docker imagesTypo can fix commands on both sides of && in the same line.
echo ok && gti status <Esc, Esc>
echo ok && git status
ehco ok && gti status <Esc, Esc>
echo ok && git statusFor example, source, echo, time, and similar shell commands.
sourec ~/.zshrc <Esc, Esc>
source ~/.zshrc$ cat ~/.zshrc | grpe "zsh"
zsh: command not found: grpe <Enter, Esc, Esc>
cat ~/.zshrc | grep "zsh"Have you ever run into this kind of issue when using git pull?
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> 0322-yuluo/inprove-add-checkPress Esc Esc, and Typo can add the suggested upstream automatically.
When Git refuses to pull because the local and remote branches diverged:
$ git pull
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can pass --rebase, --no-rebase, or --ff-only on the command line.
fatal: Need to specify how to reconcile divergent branches.Press Esc Esc, and Typo can retry the same pull with a command-level rebase strategy.
git pull --rebaseYou finish typing a command and then realize you do not have permission.
$ mkdir test <Enter, Esc, Esc>
mkdir: test: Permission denied
# fix it.
$ sudo mkdir testFor example:
gti stash scave <Esc, Esc>That is painful!!!Typo can fix the command path in one step:
gti stash save