From: Travis Swicegood Date: Mon, 30 Apr 2012 16:07:15 +0000 (-0500) Subject: Ignore files that begin with an underscore (bandaid for #108) X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=576fcb6c6fd526e625cc183d468d001972fb0918;p=common%2Fbash_it.git Ignore files that begin with an underscore (bandaid for #108) --- diff --git a/install.sh b/install.sh index a80a749..92f3d7c 100755 --- a/install.sh +++ b/install.sh @@ -31,12 +31,12 @@ done function load_all() { file_type=$1 [ ! -d "$BASH_IT/$file_type/enabled" ] && mkdir "$BASH_IT/${file_type}/enabled" - ln -s $BASH_IT/${file_type}/available/* "${BASH_IT}/${file_type}/enabled" + ln -s $BASH_IT/${file_type}/[^_]available/* "${BASH_IT}/${file_type}/enabled" } function load_some() { file_type=$1 - for file in `ls $BASH_IT/${file_type}/available` + for file in `ls $BASH_IT/${file_type}/available/[^_]*` do if [ ! -d "$BASH_IT/$file_type/enabled" ] then diff --git a/plugins/available/xterm.plugins.bash b/plugins/available/_xterm.plugins.bash similarity index 100% rename from plugins/available/xterm.plugins.bash rename to plugins/available/_xterm.plugins.bash