From cc8e2fdb9d2366e63628ea294febc588397ad2c9 Mon Sep 17 00:00:00 2001 From: MDPenguin <122059580+mdpenguin@users.noreply.github.com> Date: Sat, 4 Oct 2025 14:21:37 -0400 Subject: [PATCH] Update extract.plugin.zsh Extract to the same directory as the archive file instead of the current working directory --- plugins/extract/extract.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh index d8cbc8b94..47493733f 100644 --- a/plugins/extract/extract.plugin.zsh +++ b/plugins/extract/extract.plugin.zsh @@ -28,7 +28,7 @@ EOF local success=0 local file="$1" full_path="${1:A}" - local extract_dir="${1:t:r}" + local extract_dir="${1:A:r}" # Remove the .tar extension if the file name is .tar.* if [[ $extract_dir =~ '\.tar$' ]]; then