2
0
mirror of https://github.com/garabik/grc.git synced 2024-11-10 21:26:52 +01:00
bash-color-grc/grc.zsh

89 lines
1.0 KiB
Bash
Raw Normal View History

2015-10-10 16:35:08 +02:00
if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
# Supported commands
cmds=(
2020-07-01 17:50:04 +02:00
as
2018-05-03 15:13:38 +02:00
ant
blkid
cc
configure
cvs
df
diff
dig
dnf
docker
docker-compose
docker-machine
du
env
fdisk
findmnt
free
2020-07-01 17:50:04 +02:00
g++
gas
2018-05-03 15:13:38 +02:00
gcc
getfacl
getsebool
gmake
id
ifconfig
iostat
ip
iptables
iwconfig
journalctl
kubectl
last
ldap
lolcat
2020-07-01 17:50:04 +02:00
ld
2018-05-03 15:13:38 +02:00
ls
lsattr
lsblk
lsmod
lsof
lspci
make
mount
mtr
mvn
netstat
nmap
ntpdate
php
ping
ping6
proftpd
ps
sar
semanage
sensors
showmount
ss
stat
sysctl
systemctl
tcpdump
traceroute
traceroute6
tune2fs
uptime
vmstat
wdiff
whois
2020-10-13 16:15:27 +02:00
sockstat
2018-05-03 15:13:38 +02:00
)
2015-10-10 16:35:08 +02:00
# Set alias for available commands.
for cmd in $cmds ; do
if (( $+commands[$cmd] )) ; then
alias $cmd="grc $(whence $cmd)"
2015-10-10 16:35:08 +02:00
fi
done
# Clean up variables
unset cmds cmd
fi
2018-05-03 15:13:38 +02:00