« get me outta code hell

zsh: add util-linux to path if installed via homebrew - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-02 21:02:24 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-02 21:02:24 -0400
commitc5faa83699734a45f0fcafb07eb6c30e11e7fda3 (patch)
tree85322ee7636809d2ad2ed9612b6c2ec1a95651b9
parent5c6143e2615db1fed4627908c7e0c9ef687c200f (diff)
zsh: add util-linux to path if installed via homebrew
-rw-r--r--.zshrc5
1 files changed, 5 insertions, 0 deletions
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 --