Color "ip" output if available

This is supported since iproute2 v4.19.0

Closes #5340
This commit is contained in:
Johannes Altmanninger 2021-02-02 06:36:28 +01:00
parent 2faf814da4
commit abb59a6ec9

9
share/functions/ip.fish Normal file
View File

@ -0,0 +1,9 @@
#
# Enable ip colored output if available
#
if command -sq ip; and command ip -color=auto link >/dev/null 2>/dev/null
function ip
command ip -color=auto $argv
end
end