mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Color "ip" output if available
This is supported since iproute2 v4.19.0 Closes #5340
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user