工作中大家在使用终端工具包括Xshell、mobaXTerm等的过程中,总是希望界面上能把我们重点关注的信息以不同颜色的方式突出显示,以提高信息获取的效率。本文借鉴前人经验,尝试多种突出显示设置。现总结我的经验如下,(以下为正则表达式,不区分大小写):
1、错误规则,设为红色
(\b((bad|wrong|incorrect|improper|invalid|unsupported|bad)( file| memory)? (descriptor|alloc(ation)?|addr(ess)?|owner(ship)?|arg(ument)?|param(eter)?|setting|length|filename)|not properly|improperly|(operation |connection |authentication |access |permission )?(false|no|ko|denied|disallowed|not allowed|refused|problem|failed|failure|not permitted)|no [A<