Update extract.plugin.zsh

Extract to the same directory as the archive file instead of the current working directory
This commit is contained in:
MDPenguin 2025-10-04 14:21:37 -04:00 committed by GitHub
commit cc8e2fdb9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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