LucasLarson/dotfiles

is `PATH` `coreutils` constructed safely?

LucasLarson opened this issue · 1 comments

if not, then consider:¹

command -v brew >/dev/null 2>&1 &&
[ -d "$(brew --prefix coreutils)" ] &&
PATH="$(brew --prefix coreutils)/libexec/gnubin:${PATH}" &&
export PATH
"$(brew --prefix)" "$(brew --prefix coreutils)"
macOS Intel /usr/local² /usr/local/opt/coreutils
ARM /opt/homebrew² /opt/homebrew/opt/coreutils
Linux /home/linuxbrew/.linuxbrew² /home/linuxbrew/.linuxbrew/opt/homebrew

  1. driesvints/dotfiles@388baf1/path.zsh#L17
  2. https://github.com/Homebrew/brew/blob/c65d461/docs/Manpage.md#--prefix-formula

✅ repaired in 419f395