mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-02 01:45:13 +08:00
Color "ip" output if available
This is supported since iproute2 v4.19.0 Closes #5340
This commit is contained in:
parent
2faf814da4
commit
abb59a6ec9
9
share/functions/ip.fish
Normal file
9
share/functions/ip.fish
Normal 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
|
Loading…
x
Reference in New Issue
Block a user