Merge pull request #156 from wwalker/155

Support for FQDNs, and add the journalctl alias to the grc.bash and grc.fish
This commit is contained in:
Radovan Garabík 2020-07-19 13:56:43 +02:00 committed by GitHub
commit 8263f4f63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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