From 712b0ae25ca99363132c39f5d9ab5a13f79ff054 Mon Sep 17 00:00:00 2001 From: Sami Haahtinen Date: Mon, 4 May 2015 07:56:18 +0300 Subject: [PATCH] Add interactivity toggle to utility module --- modules/utility/init.zsh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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