Skip to content

Consider coloring ip output #5340

Closed
Closed

Description

@exploide

For me, the main benefit of fish is it's sane default configuration. E.g. grep output is colored by default. 👍

Today, I realized that the output of ip can be colorized too, by calling ip -c, which greatly improves readability.

Would it make sense for fish to make this the default?

Activity

  1. mqudsi commented on Nov 15, 2018

    @mqudsi
    Contributor

    That does drastically improve the speed of finding the most important info in the output, thanks for teaching me about that @exploide!

  2. mqudsi commented on Nov 18, 2018

    @mqudsi
    Contributor

    @exploide why don't you submit a PR modelled after grep.fish?

  3. exploide commented on Nov 19, 2018

    @exploide
    ContributorAuthor

    Usually I'm waiting for feedback from maintainers to see if the proposal is appreciated.

    I'll conduct a PR soon :P

  4. exploide commented on Nov 19, 2018

    @exploide
    ContributorAuthor

    That was fairly easy 😋

    See #5356

  5. exploide commented on Apr 26, 2019

    @exploide
    ContributorAuthor

    Contrary to my last comment, it turned out it is not that easy for reasons explained in #5356.

    If I understand correctly, this is currently blocked by #1396.

    After #5635 was fixed by 5eade35 at least ip monitor | command grep dev works now. However ip monitor | grep dev still does not work when using the colored ip fish function. So maybe we really need to wait for #1396.

  6. added this to the fish-future milestone on Jun 14, 2019
  7. zanchey commented on Feb 2, 2021

    @zanchey
    Member

    @krobelus, I suggest backing this out due to the breakage identified in the comments above.

  8. reopened this on Feb 2, 2021
  9. added a commit that references this issue on Feb 2, 2021
  10. faho commented on Feb 2, 2021

    @faho
    Member

    Reverted as cf4f8ae (also in Integration_3.2.0)

  11. modified the milestones: fish 3.2.0, fish-future on Feb 2, 2021
  12. krobelus commented on Feb 2, 2021

    @krobelus
    Contributor

    my bad, I thought the breakage was because of piped isatty 🤦

  13. exploide commented on Jul 13, 2024

    @exploide
    ContributorAuthor

    Meanwhile, iproute2 got a compile-time option to set the coloring behavior as the package maintainer likes.

    Fedora uses this to set coloring to auto. Debian will do so in the next release, too. I think other distributions should also do this.

    This is the better and shell-independent solution. Works for me :)
    I'm fine with closing this but feel free to reopen.

  14. locked as resolved and limited conversation to collaborators on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions