mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Update extract.plugin.zsh
Extract to the same directory as the archive file instead of the current working directory
This commit is contained in:
parent
d57775d89e
commit
cc8e2fdb9d
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ EOF
|
||||||
|
|
||||||
local success=0
|
local success=0
|
||||||
local file="$1" full_path="${1:A}"
|
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.*
|
# Remove the .tar extension if the file name is .tar.*
|
||||||
if [[ $extract_dir =~ '\.tar$' ]]; then
|
if [[ $extract_dir =~ '\.tar$' ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue