From 38a8bca89cb7a03467b5fac6a22d7993b893d5a1 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 19 Jun 2023 14:42:15 +0300 Subject: [PATCH] fish: make grc optional --- cli/.config/fish/config.fish | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/cli/.config/fish/config.fish b/cli/.config/fish/config.fish index a44c822..9236b23 100644 --- a/cli/.config/fish/config.fish +++ b/cli/.config/fish/config.fish @@ -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