grep高亮显示:grep =’grep –color=auto’这样写只是临时生效,断开重新连接后就不行了。如果想永久生效,可以写进全局变量文件中:/etc/profile
在文件的结尾添加:
alias grep='grep --color=auto'
[root@rescue ~]# source /etc/profile
这样就可以了。
PS:设置后高亮不明显请调整你的xshell配色方案
grep高亮显示:grep =’grep –color=auto’这样写只是临时生效,断开重新连接后就不行了。如果想永久生效,可以写进全局变量文件中:/etc/profile
在文件的结尾添加:
alias grep='grep --color=auto'
[root@rescue ~]# source /etc/profile
这样就可以了。
PS:设置后高亮不明显请调整你的xshell配色方案