From 30f1e20fe773ba8e5d766e20bc14a926e466e545 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 Feb 2022 16:34:28 -0300 Subject: Feat: additional stowpkg paths --- profile.dot.link | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/profile.dot.link b/profile.dot.link index b96c0b1..cd4b022 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -51,8 +51,18 @@ if [ -d "$HOME/apps/local" ]; then fi # PATH for stowpkg -if [ -d "$HOME/apps/stowpkg/tree/`uname -m`/bin" ]; then - PATH="$HOME/apps/stowpkg/tree/`uname -m`/bin:$PATH" +if [ -d "$HOME/apps/stowpkg/tree/`uname -m`" ]; then + if [ -d "$HOME/apps/stowpkg/tree/`uname -m`/bin" ]; then + PATH="$HOME/apps/stowpkg/tree/`uname -m`/bin:$PATH" + fi + + if [ -d "$HOME/apps/stowpkg/tree/`uname -m`/usr/bin" ]; then + PATH="$HOME/apps/stowpkg/tree/`uname -m`/usr/bin:$PATH" + fi + + if [ -d "$HOME/apps/stowpkg/tree/`uname -m`/usr/local/bin" ]; then + PATH="$HOME/apps/stowpkg/tree/`uname -m`/usr/local/bin:$PATH" + fi fi # Add /vagrant into PATH, useful if we're inside a virtual machine -- cgit v1.2.3