diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 30fee32a..2335d3ff 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -48,17 +48,20 @@ alias sftp='noglob sftp' # Define general aliases. alias _='sudo' alias b='${(z)BROWSER}' -alias cp="${aliases[cp]:-cp} -i" alias e='${(z)VISUAL:-${(z)EDITOR}}' -alias ln="${aliases[ln]:-ln} -i" alias mkdir="${aliases[mkdir]:-mkdir} -p" -alias mv="${aliases[mv]:-mv} -i" alias p='${(z)PAGER}' alias po='popd' alias pu='pushd' -alias rm="${aliases[rm]:-rm} -i" alias type='type -a' +if zstyle -T ':prezto:module:utility:aliases' interactive; then + alias cp="${aliases[cp]:-cp} -i" + alias ln="${aliases[ln]:-ln} -i" + alias mv="${aliases[mv]:-mv} -i" + alias rm="${aliases[rm]:-rm} -i" +fi + # ls if is-callable 'dircolors'; then # GNU Core Utilities