From 8de6c8405b48f675b90de357f5360adeef4e467d Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Mon, 27 May 2024 19:06:31 -0400 Subject: [PATCH] feat: use GNU `tar` instead of `tar --no-mac-metadata` Signed-off-by: Lucas Larson --- .Brewfile | 2 ++ .zshrc | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.Brewfile b/.Brewfile index 7f5b91e069..36a98458dd 100755 --- a/.Brewfile +++ b/.Brewfile @@ -102,6 +102,8 @@ brew "glib" brew "gmp" # GNU implementation of the famous stream editor brew "gnu-sed" +# GNU version of the tar archiving utility +brew "gnu-tar" # Open source programming language to build simple/reliable/efficient software brew "go" # GNU grep, egrep and fgrep diff --git a/.zshrc b/.zshrc index 31ad3fc4a1..5d482d2e46 100644 --- a/.zshrc +++ b/.zshrc @@ -178,6 +178,13 @@ if command -v -- brew >/dev/null 2>&1; then PATH="${HOMEBREW_PREFIX-}"'/opt/gnu-sed/libexec/gnubin'"${PATH:+:${PATH-}}" test -d "${HOMEBREW_PREFIX-}"'/opt/gnu-sed/libexec/gnuman' && MANPATH="${HOMEBREW_PREFIX-}"'/opt/gnu-sed/libexec/gnuman'"${MANPATH:+:${MANPATH-}}" + + # GNU tar + # otherwise `tar` requires `tar --no-mac-metadata` + test -d "${HOMEBREW_PREFIX-}"'/opt/gnu-tar/libexec/gnubin' && + PATH="${HOMEBREW_PREFIX-}"'/opt/gnu-tar/libexec/gnubin'"${PATH:+:${PATH-}}" + test -d "${HOMEBREW_PREFIX-}"'/opt/gnu-tar/libexec/gnuman' && + MANPATH="${HOMEBREW_PREFIX-}"'/opt/gnu-tar/libexec/gnuman'"${MANPATH:+:${MANPATH-}}" fi ## Rust