Skip to content

Commit

Permalink
Add zstyle option to disable zsh option CORRECT
Browse files Browse the repository at this point in the history
  • Loading branch information
monai authored and Matthew de Verteuil committed Jun 4, 2019
1 parent 39a446f commit ebc1a42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/utility/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Aliases
- `mysql`
- `rm`

To disable all spelling corrections, add the following line to *zpreztorc*:

```sh
zstyle ':prezto:module:utility' correct 'no'
```

### Disabled File Globbing

- `bower`
Expand Down
4 changes: 3 additions & 1 deletion modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
pmodload 'helper' 'spectrum'

# Correct commands.
setopt CORRECT
if zstyle -T ':prezto:module:utility' correct; then
setopt CORRECT
fi

#
# Aliases
Expand Down

0 comments on commit ebc1a42

Please sign in to comment.