1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-19 02:04:05 +00:00
Files
prezto/modules/utility/init.zsh
Łukasz Matysiak 43bf17169c Make uutils coreutils ls behave the same as GNU coreutils ls
Ubuntu 25.10 uses a rust rewrite of GNU coreutils called `uutils coreutils`.
Calling `ls --version` on that config yields `ls (uutils coreutils) 0.2.2`.
Since the regex does not match the string, it falls back to the BSD branch.
That leads to `ls` being aliased as `ls -G` without any colors in the output.

Since `uutils coreutils` claims that `uutils coreutils aims to be a drop-in replacement for the GNU utils. Differences with GNU are treated as bugs.` it should be safe to treat it the same way in the code.

Adjust the `utility` module to detect `uutils ls` as `GNU ls` by extending the regex pattern.
2026-01-23 21:10:56 -06:00

7.5 KiB