summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-11 11:46:09 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-11 11:46:09 +0900
commit8c0fe8d0d0dd4bbd16c1095e25b2e3ffa1fdb0d3 (patch)
tree597b8dfd730eda9b410fb6082b0bee7fcc7e70e2 /ar
parent74713d79880967f5f0f8652c6741bc5fa63a8794 (diff)
updates
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/shell/profile4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.config/shell/profile b/ar/.config/shell/profile
index c9da216..4d3312b 100644
--- a/ar/.config/shell/profile
+++ b/ar/.config/shell/profile
@@ -7,8 +7,8 @@
### --- ENV PATH --- ###
###################################################
# Add all directories in each subdirectory to $PATH
-export PATH="$(find ~/.local/bin -path '*/.git*' -prune -o \( -type f -o -type l \) -perm -u=x -exec dirname {} \; | sort -u | paste -sd ':' -):$PATH"
-export PATH="$(find ~/.local/share/.password-store -type d -name '.extensions' | paste -sd ':' -):$PATH"
+[ -d ~/.local/bin ] && export PATH="$(find ~/.local/bin -path '*/.git*' -prune -o \( -type f -o -type l \) -perm -u=x -exec dirname {} \; | sort -u | paste -sd ':' -):$PATH"
+[ -d ~/.local/share/.password-store ] && export PATH="$(find ~/.local/share/.password-store -type d -name '.extensions' | paste -sd ':' -):$PATH"
command -v asdf >/dev/null 2>&1 && export PATH="$(find -L ~/.local/share/asdf/installs -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -):$PATH"
command -v npm >/dev/null 2>&1 && export PATH="$(find -L ~/.local/share/npm -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -):$PATH"