From c5faa83699734a45f0fcafb07eb6c30e11e7fda3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 2 Jan 2024 21:02:24 -0400 Subject: zsh: add util-linux to path if installed via homebrew --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index c057e7f..784cbdc 100644 --- a/.zshrc +++ b/.zshrc @@ -59,6 +59,11 @@ if [[ -v DEVICE_HAS_HOMEBREW ]]; then # https://github.com/pyenv/pyenv#homebrew-in-macos alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' fi + + if [[ -s "$DEVICE_HOMEBREW_INSTALLATION/opt/util-linux" ]]; then + path=("$DEVICE_HOMEBREW_INSTALLATION/opt/util-linux/bin" ${(@)path}) + path=("$DEVICE_HOMEBREW_INSTALLATION/opt/util-linux/sbin" ${(@)path}) + fi fi # -- Node Version Manager -- -- cgit 1.3.0-6-gf8a5