Support for FQDNs, and add the journalctl alias to the grc.bash and grc.zsh

This commit is contained in:
Wayne Walker 2020-06-27 13:47:03 -05:00
parent 01a21de7fa
commit 0c615d2904
3 changed files with 6 additions and 3 deletions

View File

@ -16,8 +16,10 @@ regexp=.*last message repeated \d+ times$
colours=yellow
count=stop
======
# this is a date
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[\w\d]+?\s)
# this is date and hostname
# 'Jun 3 22:44:55 neutronium '
# 'Jun 3 22:44:55 neutronium-02.my-domain.io '
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[-.\w\d]+?\s)
colours=green, green, red
count=once
======

View File

@ -21,6 +21,7 @@ if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
alias iptables='colourify iptables'
alias as='colourify as'
alias gas='colourify gas'
alias journalctl='colourify journalctl'
alias kubectl='colourify kubectl'
alias ld='colourify ld'
#alias ls='colourify ls'

View File

@ -8,7 +8,7 @@
set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \
make mount mtr netstat ping ps tail traceroute \
wdiff blkid du dnf docker docker-compose docker-machine env id ip iostat kubectl \
wdiff blkid du dnf docker docker-compose docker-machine env id ip iostat journalctl kubectl \
last lsattr lsblk lspci lsmod lsof getfacl getsebool ulimit uptime nmap \
fdisk findmnt free semanage sar ss sysctl systemctl stat showmount \
tcpdump tune2fs vmstat w who