fish: make grc optional
This commit is contained in:
parent
12f1b59a09
commit
38a8bca89c
1 changed files with 12 additions and 10 deletions
|
@ -6,6 +6,7 @@ if status is-interactive
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if command -q grc
|
||||||
set -l grc_cmds \
|
set -l grc_cmds \
|
||||||
iptables ipneighbor ipaddr iproute ip nmap netstat \
|
iptables ipneighbor ipaddr iproute ip nmap netstat \
|
||||||
traceroute tcpdump ss ping \
|
traceroute tcpdump ss ping \
|
||||||
|
@ -17,4 +18,5 @@ if status is-interactive
|
||||||
for cmd in $grc_cmds
|
for cmd in $grc_cmds
|
||||||
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
|
command -q $cmd && alias $cmd="command grc -es --colour=auto $cmd"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue