]> code.delx.au - dotfiles/commitdiff
bash: support symlinks to dirs in ~/bin
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 19 Nov 2018 12:14:24 +0000 (23:14 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 19 Nov 2018 12:16:31 +0000 (23:16 +1100)
.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