1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 23:08:00 +00:00

[utility] Reuse interactive aliases when 'safe-ops' is set

When `safe-ops` is set, we can reuse the aliases that are already available.
This commit is contained in:
Indrajit Raychaudhuri 2017-07-20 23:11:00 -05:00 committed by Kaleb Elwert
parent 2db7f62c2b
commit 608f291ad3

View File

@ -89,10 +89,10 @@ alias mvi="${aliases[mv]:-mv} -i"
alias cpi="${aliases[cp]:-cp} -i" alias cpi="${aliases[cp]:-cp} -i"
alias lni="${aliases[ln]:-ln} -i" alias lni="${aliases[ln]:-ln} -i"
if zstyle -T ':prezto:module:utility' safe-ops; then if zstyle -T ':prezto:module:utility' safe-ops; then
alias rm="${aliases[rm]:-rm} -i" alias rm='rmi'
alias mv="${aliases[mv]:-mv} -i" alias mv='mvi'
alias cp="${aliases[cp]:-cp} -i" alias cp='cpi'
alias ln="${aliases[ln]:-ln} -i" alias ln='lni'
fi fi
# ls # ls