I am using zsh and oh-my-zsh on Arch Linux. I am not able to make directory using mkdiredward@ArchLinux  ~ $ sudo mkdir -p /samba/raspberry  [sudo] password for edward:   sudo: nocorrect: command not foundI know it has to do something with auto-completion feature of zsh and alias defined but can't figure out.
sudo: nocorrect: command not found
zsh;alias;autocomplete;oh my zsh
I have this alias alias sudo='sudo 'defined in a file which I sourced at the end of ~/.zshrc file which overwrote alias sudo='nocorrect sudo' which is defined in .oh-my-zsh/lib/correction.zshalias sudo='nocorrect sudo' is required by zsh's auto-completion feature to workMore: How to disable autocorrection for sudo [command] in zsh?But at same time I need alias sudo='sudo ' for aliases of commands following sudo to workMore: Load aliases from .bashrc file while using sudoPlease note alias sudo='sudo ' works for zsh tooSo I can either have zsh's auto-completion feature or have aliases (of other commands) while using sudo so I have now disabled zsh's auto-completion feature.(Hope I am clear and not confusing.)