]> code.delx.au - dotfiles/blobdiff - .bashrc
bash: support symlinks to dirs in ~/bin
[dotfiles] / .bashrc
diff --git a/.bashrc b/.bashrc
index 8f6421ac0e86d8e48d9f638a3256242d47b945e2..443153f9c8e6548e3ffaaa6a119ebb1fc2bb81b5 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -14,7 +14,7 @@ fi
 # Add ~/bin and subdirs to PATH if needed
 while read -r p; do
     echo "$PATH" | tr ':' '\n' | grep -qxF "$p" || PATH="${p}:$PATH"
-done < <(find ~/bin -type d 2> /dev/null)
+done < <(find -L ~/bin -maxdepth 1 -type d 2> /dev/null)
 
 # Set EMAIL from the freedesktop environment.d
 if [ -r ~/.config/environment.d/10-email.conf ]; then