Saturday, 8 June 2013

How do I use sudo with alias in zsh?

How do I use sudo with alias in zsh?

Say I have these two in my .zshrc:
alias sudo='nocorrect sudo'
alias boot27='grub-reboot 4 && reboot'
boot27 gives boot27: command not found. If I change the alias to 'nocorrect sudo ' or just 'sudo ', it works, but then other things like mkdir give nocorrect: command not found.

No comments:

Post a Comment