Skip to content

Commit 46c0d82

Browse files
Merge pull request #281 from zeridon/disable-colors
Option to disable color logging
2 parents 80fd97c + dbe4241 commit 46c0d82

File tree

2 files changed

+121
-11
lines changed

2 files changed

+121
-11
lines changed

.gitignore

Lines changed: 107 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,108 @@
1-
1+
# mac related files
22
.DS_Store
3+
4+
# configuration files
5+
address_blacklist
6+
behavior_preferences
7+
known_beacon_addresses
8+
known_static_addresses
9+
mqtt_preferences
10+
11+
# caches/temp files
12+
.pids
13+
.previous_version
14+
.public_name_cache
15+
.manufacturer_cache
16+
17+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
18+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
19+
20+
# User-specific stuff
21+
.idea/**/workspace.xml
22+
.idea/**/tasks.xml
23+
.idea/**/usage.statistics.xml
24+
.idea/**/dictionaries
25+
.idea/**/shelf
26+
27+
# Generated files
28+
.idea/**/contentModel.xml
29+
30+
# Sensitive or high-churn files
31+
.idea/**/dataSources/
32+
.idea/**/dataSources.ids
33+
.idea/**/dataSources.local.xml
34+
.idea/**/sqlDataSources.xml
35+
.idea/**/dynamic.xml
36+
.idea/**/uiDesigner.xml
37+
.idea/**/dbnavigator.xml
38+
39+
# Gradle
40+
.idea/**/gradle.xml
41+
.idea/**/libraries
42+
43+
# Gradle and Maven with auto-import
44+
# When using Gradle or Maven with auto-import, you should exclude module files,
45+
# since they will be recreated, and may cause churn. Uncomment if using
46+
# auto-import.
47+
# .idea/artifacts
48+
# .idea/compiler.xml
49+
# .idea/jarRepositories.xml
50+
# .idea/modules.xml
51+
# .idea/*.iml
52+
# .idea/modules
53+
# *.iml
54+
# *.ipr
55+
56+
# CMake
57+
cmake-build-*/
58+
59+
# Mongo Explorer plugin
60+
.idea/**/mongoSettings.xml
61+
62+
# File-based project format
63+
*.iws
64+
65+
# IntelliJ
66+
out/
67+
68+
# mpeltonen/sbt-idea plugin
69+
.idea_modules/
70+
71+
# JIRA plugin
72+
atlassian-ide-plugin.xml
73+
74+
# Cursive Clojure plugin
75+
.idea/replstate.xml
76+
77+
# Crashlytics plugin (for Android Studio and IntelliJ)
78+
com_crashlytics_export_strings.xml
79+
crashlytics.properties
80+
crashlytics-build.properties
81+
fabric.properties
82+
83+
# Editor-based Rest Client
84+
.idea/httpRequests
85+
86+
# Android studio 3.1+ serialized cache file
87+
.idea/caches/build_file_checksums.ser
88+
89+
# Vim related
90+
# Swap
91+
[._]*.s[a-v][a-z]
92+
!*.svg # comment out if you don't need vector files
93+
[._]*.sw[a-p]
94+
[._]s[a-rt-v][a-z]
95+
[._]ss[a-gi-z]
96+
[._]sw[a-p]
97+
98+
# Session
99+
Session.vim
100+
Sessionx.vim
101+
102+
# Temporary
103+
.netrwhist
104+
*~
105+
# Auto-generated tag files
106+
tags
107+
# Persistent undo
108+
[._]*.un~

monitor.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@
2727
#VERSION NUMBER
2828
export version=0.2.200
2929

30-
#COLOR OUTPUT FOR RICH OUTPUT
31-
ORANGE=$'\e[1;33m'
32-
RED=$'\e[1;31m'
33-
NC=$'\e[0m'
34-
GREEN=$'\e[1;32m'
35-
PURPLE=$'\e[1;35m'
36-
BLUE=$'\e[1;34m'
37-
CYAN=$'\e[1;36m'
38-
YELLOW=$'\e[01;33m'
39-
REPEAT=$'\e[1A'
30+
if [ -z ${NO_COLOR} -o -z ${NOCOLOR} ] ; then
31+
#COLOR OUTPUT FOR RICH OUTPUT
32+
ORANGE=$'\e[1;33m'
33+
RED=$'\e[1;31m'
34+
NC=$'\e[0m'
35+
GREEN=$'\e[1;32m'
36+
PURPLE=$'\e[1;35m'
37+
BLUE=$'\e[1;34m'
38+
CYAN=$'\e[1;36m'
39+
YELLOW=$'\e[01;33m'
40+
REPEAT=$'\e[1A'
41+
else
42+
:
43+
fi
4044

4145
# ----------------------------------------------------------------------------------------
4246
# BETA WARNING ONLY IF ON THE BETA CHANNEL

0 commit comments

Comments
 (0)