mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
feat: Implement auto-detection of subexecutor
This commit is contained in:
parent
fd01fd66ce
commit
a13fdca8ac
4 changed files with 52 additions and 6 deletions
|
|
@ -3,8 +3,11 @@ if [[ "$ENABLE_CORRECTION" == "true" ]]; then
|
|||
alias man='nocorrect man'
|
||||
alias mkdir='nocorrect mkdir'
|
||||
alias mv='nocorrect mv'
|
||||
alias sudo='nocorrect sudo'
|
||||
alias su='nocorrect su'
|
||||
|
||||
zstyle -s ':omz' 'subexecutor' _subex
|
||||
alias "$_subex"="nocorrect $_subex"
|
||||
unset _subex
|
||||
|
||||
setopt correct_all
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue