aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profile.dot.link14
1 files 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