From: sev Date: Thu, 16 Nov 2023 21:38:02 +0000 (-0600) Subject: zshrc: add zmv aliases X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/bfbd0519921f338c624addaa845dab3a633c3e02?hp=4f87b9b942dc27fff0fc57a0419837cebf5a2c5e zshrc: add zmv aliases --- diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index bfe0d9f..8fa153d 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -208,6 +208,12 @@ alias se=sudoedit # be paranoid alias cp='cp -ip' alias mv='mv -i' +alias zm='noglob zmv -WiM' +alias zc='noglob zmv -WiC' +alias zl='noglob zmv -WiL' +alias sm='noglob zmv -Wip"sudo mv"' +alias sc='noglob zmv -Wip"sudo cp"' +alias sl='noglob zmv -Wip"sudo ln"' if [[ "$OSTYPE" =~ '^freebsd' ]] { # don't confirm if only a few files are deleted alias rm='rm -I'