2021-04-25 19:21:52 +02:00
|
|
|
# `atuin stats`
|
|
|
|
|
|
|
|
Atuin can also calculate stats based on your history - this is currently a
|
2022-10-21 21:21:14 +02:00
|
|
|
little basic, but more features to come.
|
|
|
|
|
|
|
|
## 1-day stats
|
|
|
|
|
|
|
|
You provide the starting point, and Atuin computes the stats for 24h from that point.
|
|
|
|
Date parsing is provided by `interim`, which supports different formats
|
|
|
|
for full or relative dates. Certain formats rely on the dialect option in your
|
|
|
|
[configuration](config.md#dialect) to differentiate day from month.
|
|
|
|
Refer to [the module's documentation](https://docs.rs/interim/0.1.0/interim/#supported-formats) for more details on the supported date formats.
|
2021-04-25 19:21:52 +02:00
|
|
|
|
|
|
|
```
|
2022-10-21 21:21:14 +02:00
|
|
|
$ atuin stats last friday
|
2021-04-25 19:21:52 +02:00
|
|
|
|
|
|
|
+---------------------+------------+
|
|
|
|
| Statistic | Value |
|
|
|
|
+---------------------+------------+
|
|
|
|
| Most used command | git status |
|
|
|
|
+---------------------+------------+
|
|
|
|
| Commands ran | 450 |
|
|
|
|
+---------------------+------------+
|
|
|
|
| Unique commands ran | 213 |
|
|
|
|
+---------------------+------------+
|
|
|
|
|
2022-10-21 21:21:14 +02:00
|
|
|
# A few more examples:
|
|
|
|
$ atuin stats 2018-04-01
|
|
|
|
$ atuin stats April 1
|
|
|
|
$ atuin stats 01/04/22
|
|
|
|
$ atuin stats last thursday 3pm # between last thursday 3:00pm and the following friday 3:00pm
|
2021-04-25 19:21:52 +02:00
|
|
|
```
|
|
|
|
|
2022-10-21 21:21:14 +02:00
|
|
|
## Full history stats
|
2021-04-25 19:21:52 +02:00
|
|
|
|
|
|
|
```
|
2022-10-21 21:21:14 +02:00
|
|
|
$ atuin stats
|
|
|
|
# or
|
2021-04-25 19:21:52 +02:00
|
|
|
$ atuin stats all
|
|
|
|
|
|
|
|
+---------------------+-------+
|
|
|
|
| Statistic | Value |
|
|
|
|
+---------------------+-------+
|
|
|
|
| Most used command | ls |
|
|
|
|
+---------------------+-------+
|
|
|
|
| Commands ran | 8190 |
|
|
|
|
+---------------------+-------+
|
|
|
|
| Unique commands ran | 2996 |
|
|
|
|
+---------------------+-------+
|
|
|
|
```
|