Questions tagged [autocorrection]
The autocorrection tag has no usage guidance.
20
questions
4
votes
1
answer
88
views
Make ZSH autocorrect `les` to `less` and not `ls`?
I'd like to change this behavior:
❯ les file.txt
zsh: correct 'les' to 'ls' [nyae]?
To this:
❯ les file.txt
zsh: correct 'les' to 'less' [nyae]?
What's the simplest way to do this? I'm looking to ...
1
vote
1
answer
353
views
prevent bash to make suggestions for unknown commands (similar commands or apt packages)
On some Linux installations, there is a 'feature' in which bash automatically suggests similar commands or apt packages when you type a command which is not found on the path.
I find it very annoying, ...
3
votes
1
answer
922
views
Automatically correct simple spelling mistakes in zsh?
How do I tell zsh to correct simple spelling mistakes automatically?
For example:
I want lsbkl to automatically be corrected to lsblk, after hitting Enter, without showing zsh: correct 'lsbkl' to '...
2
votes
1
answer
357
views
Text prediction in Linux while typing like on Android, iOS and Windows
I have noticed the utility of this feature while typing on Android devices (notably with Gboard virtual keyboard)
The same is available on iOS, in iPhones and iPads.
I don't mean the use of a virtual ...
0
votes
0
answers
129
views
Why does Zsh correct ssh User@ip1 to User@ip2, and how to stop it?
On Mac OS X 10.9 and zsh version 5.0.2 (x86_64-apple-darwin13.0) the ssh [email protected] command traps a correct to ssh [email protected] [nyae].
I don't want to disable zsh correction on the ssh ...
2
votes
1
answer
168
views
How to fix path typos?
When typing quickly, I often mistype cd ~/myfiles as cd ~?myfiles, resulting in:
zsh: no matches found: ~?myfiles
Is there a way ZSH can autocorrect such mistakes?
0
votes
1
answer
335
views
Disable command name autocorrection
I would like to disable a feature. However Zsh is ignoring the settings I am
inputting:
> bind
zsh: correct 'bind' to 'find' [nyae]? n
zsh: command not found: bind
> setopt nocorrectall
> ...
3
votes
1
answer
549
views
Don't try to correct a command that, now, exists
I like zsh's autocorrect for commands. It has an annoying feature, however: sometimes I try to run a command, notice it doesn't exist, install it, then try to run it again, and zsh still wants to make ...
6
votes
1
answer
2k
views
Stop ZSH from trying to correct ssh to .ssh as an argument
This isn't exactly a duplicate, as I want correct_all still active. I do mess up arguments from time to time and ZSH is happy to help me. The rub happens when I am in my home directory and I want to ...
2
votes
3
answers
1k
views
Did you mean this command instead? (how to reply to this)
Suppose I entered the following thing into terminal:
wgets "link"
I will get the response:
No command 'wgets' found, did you mean:
Command 'wget' from package 'wget' (main)
I made a mistake, ...
5
votes
1
answer
825
views
How to teach zsh when not do autocorrect?
I love the autocorrection feature of ZSH, but sometimes it gets in the way:
If I have a cli directory, it will be suggested when I try to run npm run ci.
When running the Docker command docker run -...
1
vote
1
answer
147
views
mispelled command in UNIX?
I don't remember a UNIX command that allowed you to remember how to write correctly a command.
Let's supose that the command that I say is called MISPELL
So running MISPELL will produce the ...
0
votes
1
answer
4k
views
zsh Command Auto correction
I've seen and read about zsh offering auto correction of a command input. Eg- if I type sl, it should ask me something like "did you mean ls?" But, in my zsh, this does not happen. It just gives an ...
1
vote
0
answers
67
views
highlighting of zsh correction
When zsh's autocorrection suggests a change in long filename, it may be hard to spot which change is actually suggested:
The example is of cause artificial as tab completion would've done the job (...
17
votes
1
answer
700
views
Is it standard behaviour for cd to automatically choose when given an incomplete directory name?
I have three folders called ProjectA, ProjectB and ProjectC. When I tab-complete cd to cd Project and press Enter, it chooses ProjectC. I've found this is also the case with other similar cases; it ...