Skip to content

Commit

Permalink
[utility] Reuse interactive aliases when 'safe-ops' is set
Browse files Browse the repository at this point in the history
When `safe-ops` is set, we can reuse the aliases that are already available.
  • Loading branch information
indrajitr authored and belak committed Jul 21, 2017
1 parent 2db7f62 commit 608f291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ alias mvi="${aliases[mv]:-mv} -i"
alias cpi="${aliases[cp]:-cp} -i"
alias lni="${aliases[ln]:-ln} -i"
if zstyle -T ':prezto:module:utility' safe-ops; then
alias rm="${aliases[rm]:-rm} -i"
alias mv="${aliases[mv]:-mv} -i"
alias cp="${aliases[cp]:-cp} -i"
alias ln="${aliases[ln]:-ln} -i"
alias rm='rmi'
alias mv='mvi'
alias cp='cpi'
alias ln='lni'
fi

# ls
Expand Down

0 comments on commit 608f291

Please sign in to comment.