Merge pull request #218 from nodauf/devel

Add color for json output of base64 command
This commit is contained in:
Radovan Garabík 2024-02-25 16:57:04 +01:00 committed by GitHub
commit d8ad4fead5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View File

@ -153,6 +153,10 @@ conf.fdisk
^([/\w\.]+\/)?free\b
conf.free
# base64
^([/\w\.]+\/)?base64\b
conf.json
------------
# docker

View File

@ -6,7 +6,7 @@
#
# See also the plugin at https://github.com/oh-my-fish/plugin-grc
set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \
set -U grc_plugin_execs base64 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 journalctl kubectl \
last lsattr lsblk lspci lsmod lsof getfacl getsebool ulimit uptime nmap \

1
grc.sh
View File

@ -11,6 +11,7 @@
GRC="$(which grc)"
if tty -s && [ -n "$TERM" ] && [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
alias colourify="$GRC -es"
alias base64='colourify base64'
alias blkid='colourify blkid'
alias configure='colourify ./configure'
alias df='colourify df'

View File

@ -9,6 +9,7 @@ fi
cmds=(
as
ant
base64
blkid
cc
configure