From ecbcc2e8cd0c9746544f1fb09b2fe9e46895b8ea Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 27 Dec 2020 15:36:23 +0300 Subject: [PATCH] zmv --- aliases.zsh | 4 ++++ options.zsh | 1 + 2 files changed, 5 insertions(+) diff --git a/aliases.zsh b/aliases.zsh index e0eedf6..14fe3fc 100644 --- a/aliases.zsh +++ b/aliases.zsh @@ -1,6 +1,10 @@ # Dotdrop alias dotdrop="$HOME/etc/dotdrop.sh" --cfg="$HOME/etc/config.yaml" +# zmv +alias zcp='zmv -C' +alias zln='zmv -L' + # APT alias aptu='sudo apt-get update' alias aptn='sudo apt-get update && sudo apt-get dist-upgrade' diff --git a/options.zsh b/options.zsh index 8279855..ef9629b 100644 --- a/options.zsh +++ b/options.zsh @@ -4,6 +4,7 @@ # Автодополнение autoload -Uz compinit +autoload zmv typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null) if [ $(date +'%j') != $updated_at ]; then