With zstyle ':prezto:module:utility' safe-ops 'yes' (the default) the safe-ops aliases such as rmi, mvi, cpi, and lni don't work. This isn't very noticeable because with safe-ops set to 'yes' you would normally use the aliased rm, mv, cp, and ln which become the safe versions as expected and work fine.
It looks to me like it's a recursive alias issue where rmi is aliased to rm -i and rm is aliased to rmi. Why this causes issues for rmi but not rm in unclear to me. The easiest fix looks to me to be changing each of the safe-ops aliases from
alias rm='rmi'
alias mv='mvi'
alias cp='cpi'
alias ln='lni'
to
alias rm='$aliases[rmi]'
alias mv='$aliases[mvi]'
alias cp='$aliases[cp]i'
alias ln='$aliases[lni]'
user@host:~$ rmi
rm: missing operand
Try 'rm --help' for more information.
user@host:~$ rmi
zsh: command not found: rmi
rmi+1 for a fix please
This is very noticeable with the highlighter plugin enabled.
It'll highlight commands like ln, cp red (without the i suffix)
I'm not sure what's going on here:
~/.antigen/bu/s/prezto master ?1 โฏ echo $aliases[rm]
rmi
~/.antigen/bu/s/prezto master ?1 โฏ echo $aliases[rmi]
nocorrect rm -i
However, you're right that it doesn't work. I'll take a look.
Should be resolved now. Please let me know if you have any more issues! Sorry it took so long to get a fix in.
Most helpful comment
Should be resolved now. Please let me know if you have any more issues! Sorry it took so long to get a fix in.