fish: make grc optional
This commit is contained in:
parent
12f1b59a09
commit
38a8bca89c
1 changed files with 12 additions and 10 deletions
|
@ -6,15 +6,17 @@ if status is-interactive
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l grc_cmds \
|
if command -q grc
|
||||||
iptables ipneighbor ipaddr iproute ip nmap netstat \
|
set -l grc_cmds \
|
||||||
traceroute tcpdump ss ping \
|
iptables ipneighbor ipaddr iproute ip nmap netstat \
|
||||||
dockerversion dockersearch dockerpull dockerps dockernetwork \
|
traceroute tcpdump ss ping \
|
||||||
docker-machinels dockerinfo dockerimages \
|
dockerversion dockersearch dockerpull dockerps dockernetwork \
|
||||||
lspci lsof lsmod lsblk lsattr getfacl id whois vmstat ulimit \
|
docker-machinels dockerinfo dockerimages \
|
||||||
systemctl sysctl stat pv ps ping last gcc free findmnt fdisk env du \
|
lspci lsof lsmod lsblk lsattr getfacl id whois vmstat ulimit \
|
||||||
dig diff df blkid
|
systemctl sysctl stat pv ps ping last gcc free findmnt fdisk env du \
|
||||||
for cmd in $grc_cmds
|
dig diff df blkid
|
||||||
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
|
for cmd in $grc_cmds
|
||||||
|
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue