tmux-catppuccin-coal/status
Bryan Hoang 408c02ccf4
fix(uptime): filter out singular "user" string in sed expression (#255)
Previously, on machines where the logged-in user count is 1, the `sed`
expression to filter out "... X users, ..." doesn't filter out "... X
user, ...", leading to something like

```
1h 05,  1 user,  load average: 0.05, 0.72, 1.62m
```

being displayed in the module. When the user count is greater than 1
(e.g., after `ssh localhost`), the `uptime` module displays

```
1h 05m
```

as expected.

The Stack Overflow answer the `sed` expression is based on [^1][^2]
doesn't seem to consider the case when the user count is 1.

With this patch, the `uptime` module display correctly when the user
count is 1.

[^1]: https://stackoverflow.com/a/28353785
[^2]: https://github.com/catppuccin/tmux/pull/163
2024-07-19 09:50:21 +00:00
..
application.sh fix: better default for application.sh (#246) 2024-07-12 16:33:14 +00:00
battery.sh fix(status): support tmux-battery attached status icon (#201) 2024-04-29 18:41:57 +00:00
clima.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
cpu.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
date_time.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
directory.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
gitmux.sh Adding git to status (#191) 2024-04-17 12:52:10 +02:00
host.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
kube.sh Add support to kube-tmux in status bar (#249) 2024-07-15 15:07:52 +00:00
load.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
pomodoro_plus.sh Add support to tmux-pomodoro-plus plugin in status bar (#241) 2024-07-02 15:13:24 +00:00
session.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
uptime.sh fix(uptime): filter out singular "user" string in sed expression (#255) 2024-07-19 09:50:21 +00:00
user.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00
weather.sh Cleanup shellcheck warnings (#178) 2024-03-30 21:07:56 +01:00