summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc11
1 files changed, 8 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index 7e9307e..5e5b41a 100644
--- a/bashrc
+++ b/bashrc
@@ -160,6 +160,12 @@ EOF
rm -f $launcher
}
+reset()
+{
+ clear
+ printf '\e[3J'
+}
+
bisect() {
MAILINGLISTS_INSTALL_BASE=$(git root)/../mailinglists ANALYTICS_INSTALL_BASE=$(git root)/analytics OCTAL_INSTALL_BASE=$(git root)/../smssite OCTAL_BASE=$(git root) CCACHE_BASEDIR=$(git root) git bisect run nice -n5 b2 -l300 -j$TASKS $@
}
@@ -176,9 +182,8 @@ build() {
}
onchange() {
$@
- while inotifywait -qr . --exclude '/bin/|\.sw.|/target/|/\.git/|\.gcov' -e modify ; do
- clear
- printf '\e[3J'
+ while inotifywait -qr . --exclude '\<bin\>|/tags$|\.sw.$|\<target\>|/\.git/|\.gcov$' -e modify ; do
+ reset
$@
done
}