nicoulaj/rainbow

View on GitHub
rainbow/config/builtin/ping.cfg

Summary

Maintainability
Test Coverage
# ----------------------------------------------------------------------
# rainbow, a terminal colorizer - https://github.com/nicoulaj/rainbow
# copyright (c) 2010-2018 rainbow contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------
# Description:
#   Example Rainbow configuration for the 'ping' command.
#
# Usage:
#   $ rainbow ping www.google.fr
# ----------------------------------------------------------------------

[filters]
magenta: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
yellow: time=\d+(\.\d+)*\sms
red: .+unknown\shost\s.+
bold: PING.*|^---.*|.+unknown\shost\s.+|\d+(\.\d+)*\sms