1
0
Fork 0

fish: make grc optional

This commit is contained in:
Von Random 2023-06-19 14:42:15 +03:00
parent 12f1b59a09
commit 38a8bca89c

View file

@ -6,15 +6,17 @@ if status is-interactive
end
end
set -l grc_cmds \
iptables ipneighbor ipaddr iproute ip nmap netstat \
traceroute tcpdump ss ping \
dockerversion dockersearch dockerpull dockerps dockernetwork \
docker-machinels dockerinfo dockerimages \
lspci lsof lsmod lsblk lsattr getfacl id whois vmstat ulimit \
systemctl sysctl stat pv ps ping last gcc free findmnt fdisk env du \
dig diff df blkid
for cmd in $grc_cmds
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
if command -q grc
set -l grc_cmds \
iptables ipneighbor ipaddr iproute ip nmap netstat \
traceroute tcpdump ss ping \
dockerversion dockersearch dockerpull dockerps dockernetwork \
docker-machinels dockerinfo dockerimages \
lspci lsof lsmod lsblk lsattr getfacl id whois vmstat ulimit \
systemctl sysctl stat pv ps ping last gcc free findmnt fdisk env du \
dig diff df blkid
for cmd in $grc_cmds
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
end
end
end