summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-05 01:05:12 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-05 01:05:55 +0200
commit594231d61c37eaf754b53872918d41c8d2de71a3 (patch)
tree6f383f6feae3c7c4eed0b0261c31aa0f077be3e9
parentb0f162b7ddb76694e96125424beecca48a824dfa (diff)
eyecandy: bashrc snipplet to build with color on interactive shells (only)
-rw-r--r--scripts/bashrc_termcolorbuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/bashrc_termcolorbuild b/scripts/bashrc_termcolorbuild
new file mode 100644
index 00000000..08417872
--- /dev/null
+++ b/scripts/bashrc_termcolorbuild
@@ -0,0 +1,18 @@
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+# add this snipplet to your .bashrc to have gbuild output in nice color if and
+# only if running in an interactive shell
+
+function make {
+ if [ -t 1 ]
+ then
+ `which make` gb_COLOR=T -r $@
+ else
+ `which make` -r $@
+ fi
+}