From: Sergey Matveev Date: Sun, 23 Mar 2025 16:26:45 +0000 (+0300) Subject: Shorter notation X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=175df41fa3fd13a88c12bc3ecc3a360b52be5420;p=dotfiles.git Shorter notation --- diff --git a/bin/bin/zsnap b/bin/bin/zsnap index 8ffb0e0..3ee5afa 100755 --- a/bin/bin/zsnap +++ b/bin/bin/zsnap @@ -64,7 +64,7 @@ case $action in latest_dst=($dst/*.from~$dst/.*(.Onn[1])) [[ $latest_dst ]] latest_dst=${latest_dst[1]} - latest_dst=${${latest_dst##*/}%.from} + latest_dst=$latest_dst:t:r [[ $latest_dst != $latest_filename ]] setopt PIPE_FAIL set -x