From 9a6e7ae043ca68354d486398e4e4cbb6b16e6b24 Mon Sep 17 00:00:00 2001 From: Will Coster Date: Sun, 3 Feb 2013 19:42:48 -0800 Subject: [PATCH] Only decend 3 levels in the bin directory while looking for binaries --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index f07d30a..9782a94 100755 --- a/.profile +++ b/.profile @@ -22,7 +22,7 @@ export MPD_HOST=multivac.wc # subdirectories also if [ -d "$HOME/bin" ] ; then # find all directories in $HOME/bin, follow symbolic links ignore dot files - directories=`find -L $HOME/bin/ -type d | egrep -v '/\.'` + directories=`find -L $HOME/bin/ -maxdepth 3 -type d | egrep -v '/\.'` for d in $directories do # Add the directory to the path if there are any executable files in it