mirror of
https://github.com/garabik/grc.git
synced 2024-11-10 21:26:52 +01:00
85 lines
992 B
Bash
85 lines
992 B
Bash
if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
|
|
|
|
# Supported commands
|
|
cmds=(
|
|
ant
|
|
blkid
|
|
cc
|
|
configure
|
|
cvs
|
|
df
|
|
diff
|
|
dig
|
|
dnf
|
|
docker
|
|
docker-compose
|
|
docker-machine
|
|
du
|
|
env
|
|
fdisk
|
|
findmnt
|
|
free
|
|
gcc
|
|
getfacl
|
|
getsebool
|
|
gmake
|
|
id
|
|
ifconfig
|
|
iostat
|
|
ip
|
|
iptables
|
|
iwconfig
|
|
journalctl
|
|
kubectl
|
|
last
|
|
ldap
|
|
lolcat
|
|
ls
|
|
lsattr
|
|
lsblk
|
|
lsmod
|
|
lsof
|
|
lspci
|
|
make
|
|
mount
|
|
mtr
|
|
mvn
|
|
netstat
|
|
nmap
|
|
ntpdate
|
|
php
|
|
ping
|
|
ping6
|
|
proftpd
|
|
ps
|
|
pv
|
|
sar
|
|
semanage
|
|
sensors
|
|
showmount
|
|
ss
|
|
stat
|
|
sysctl
|
|
systemctl
|
|
tcpdump
|
|
traceroute
|
|
traceroute6
|
|
tune2fs
|
|
uptime
|
|
vmstat
|
|
wdiff
|
|
whois
|
|
)
|
|
|
|
# Set alias for available commands.
|
|
for cmd in $cmds ; do
|
|
if (( $+commands[$cmd] )) ; then
|
|
alias $cmd="grc $(whence $cmd)"
|
|
fi
|
|
done
|
|
|
|
# Clean up variables
|
|
unset cmds cmd
|
|
fi
|
|
|