FS#59517 - [sysstat] Enable color output of sar(1) command
Attached to Project:
Community Packages
Opened by Haochuan Guo (wooparadog) - Friday, 03 August 2018, 09:06 GMT
Last edited by Christian Rebischke (Shibumi) - Friday, 10 August 2018, 08:07 GMT
Opened by Haochuan Guo (wooparadog) - Friday, 03 August 2018, 09:06 GMT
Last edited by Christian Rebischke (Shibumi) - Friday, 10 August 2018, 08:07 GMT
|
Details
Description:
In other distributions, they'll add a sysstat.sh to `/etc/profile.d/sysstat.sh` with: ``` # Enable color output of sar(1) command if [ -z "${S_COLORS-}" ]; then S_COLORS=auto export S_COLORS fi ``` Maybe it can also be added to archlinux? Additional info: None Steps to reproduce: 1. `iostat` no color outputs. 2. create the file in description. 3. `iostat` will have color outputs. |
This task depends upon
Closed by Christian Rebischke (Shibumi)
Friday, 10 August 2018, 08:07 GMT
Reason for closing: Won't implement
Friday, 10 August 2018, 08:07 GMT
Reason for closing: Won't implement
But on a second thought, surely there's no need in this case to add more behaviors than the upstream.
It's a fairly clean package(other than one patch).
Normally we don't patch features and this patch is so easy that it's placed better in the wiki in an additional "Colors" section.
We have one of the best Wikis about Linux in the world. So we should use it. :)