Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

Commit 63b47ae

Browse files
committed
Bump version to 0.2.2
1 parent 9ae020b commit 63b47ae

File tree

5 files changed

+13
-104
lines changed

5 files changed

+13
-104
lines changed

README.md

Lines changed: 9 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -2,123 +2,40 @@
22

33
CHR(Command History Report): A command history report tool base on your shell history file.
44

5-
> Your data is yours.
6-
75
[![Hex.pm version](https://img.shields.io/hexpm/v/chr.svg)](https://hex.pm/packages/chr)
86
[![Twitter: ThaddeusJiang](https://img.shields.io/twitter/follow/ThaddeusJiang.svg?style=social)](https://twitter.com/ThaddeusJiang)
97

108
> Inspired by the Fig report, this tool aims to provide a similar experience for those not using Fig.
119
12-
![Fig 2022 Wrapped](https://pbs.twimg.com/media/FkqSV8hXoAEXqON?format=png&name=small)
10+
![FigWrapped image](./docs/assets/fig-wrapped.png)
1311

1412
## Features
1513

14+
> [!IMPORTANT]
15+
> CHR does not collect any data. It only processes the data in your shell history file.
16+
1617
- 🏆Top Commands
1718
- 📂Top Directories
1819
- 💦Busiest Day
1920
- 📅Weekly Activity
2021
- 🕙Daily Activity
2122

22-
## Requirements
23+
## Install
2324

24-
- [Elixir](https://elixir-lang.org/install.html)
25+
requires Elixir to be installed
2526

2627
```sh
2728
brew install elixir
29+
mix escript.install hex chr
2830
```
2931

3032
## Usage
3133

32-
```sh
33-
mix escript.install hex chr
34-
34+
```
3535
chr
3636
```
3737

38-
## Report Example
39-
40-
```
41-
┌─────────────────────────────────────────────────────────────┐
42-
│ │
43-
│ ███████╗ ██╗ ██╗ ██████╗ │
44-
│ ██╔════╝ ██║ ██║ ██╔══██╗ │
45-
│ ██║ ███████║ ██████╔╝ │
46-
│ ██║ ██╔══██║ ██╔══██╗ │
47-
│ ╚██████╗ ██║ ██║ ██║ ██║ │
48-
│ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ Commands History Report │
49-
│ │
50-
│ Made with ❤️ by ThaddeusJiang │
51-
│ source code: https://github.com/ThaddeusJiang/chr │
52-
│ │
53-
└─────────────────────────────────────────────────────────────┘
54-
┌─🏆 Top Commands────┐
55-
│ │
56-
│ 810 git │
57-
│ 276 cd │
58-
│ 183 code │
59-
│ 150 mix │
60-
│ 111 ls │
61-
│ 93 clear │
62-
│ 63 docker │
63-
│ 59 npm │
64-
│ 49 k6 │
65-
│ 45 ./gitlab_cli │
66-
│ │
67-
└────────────────────┘
68-
┌─📂 Top Directories──────────┐
69-
│ │
70-
│ 36 git/work/plugo │
71-
│ 24 repos/backend │
72-
│ 16 repos/roaming-gateway │
73-
│ 14 git/ThaddeusJiang │
74-
│ 13 repos/k8s │
75-
│ │
76-
└─────────────────────────────┘
77-
┌─💦 Busiest Day───────────────┐
78-
│ │
79-
│ 372 commands on 2024-02-19 │
80-
│ │
81-
└──────────────────────────────┘
82-
┌─📅 Weekly Activity─────────┐
83-
│ │
84-
│ Mon │
85-
│ Tue ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ │
86-
│ Wed ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ │
87-
│ Thu ▓▓▓▓▓▓▓ │
88-
│ Fri ▓▓▓▓▓▓▓▓▓▓▓ │
89-
│ Sat ▓▓▓▓▓▓▓▓▓▓ │
90-
│ Sun ▓ │
91-
│ │
92-
└────────────────────────────┘
93-
┌─🕑 Daily Activity─────────┐
94-
│ │
95-
│ 01 │
96-
│ 02 │
97-
│ 03 │
98-
│ 04 │
99-
│ 05 ▓ │
100-
│ 06 ▓▓ │
101-
│ 07 ▓ │
102-
│ 08 │
103-
│ 09 │
104-
│ 10 ▓ │
105-
│ 11 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ │
106-
│ 12 ▓▓▓▓▓▓▓▓▓▓ │
107-
│ 13 ▓▓▓▓▓▓▓▓▓▓▓ │
108-
│ 14 ▓▓▓▓▓▓▓▓▓ │
109-
│ 15 ▓▓▓▓▓▓▓▓▓▓▓▓▓ │
110-
│ 16 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ │
111-
│ 17 ▓▓▓▓▓▓▓▓▓▓ │
112-
│ 18 ▓▓▓▓▓▓▓▓▓▓▓▓ │
113-
│ 19 ▓▓▓▓▓▓▓▓ │
114-
│ 20 ▓▓▓▓▓▓▓▓▓▓▓ │
115-
│ 21 ▓▓▓▓▓▓▓ │
116-
│ 22 ▓▓▓▓▓▓ │
117-
│ 23 ▓▓▓▓▓ │
118-
│ 24 ▓ │
119-
│ │
120-
└───────────────────────────┘
121-
```
38+
![A Command History Report generated by CHR](./docs/assets/v0.2.2.png)
12239

12340
## Author
12441

@@ -133,11 +50,3 @@ chr
13350
This has been possible due to the previous work of numerous people. In particular:
13451

13552
- @borkdude - Author of babashka, thanks for helping me remove the manual data preparation requirement
136-
137-
## Show your support
138-
139-
Give a ⭐️ if this project helped you!
140-
141-
---
142-
143-
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_

docs/assets/fig-wrapped.png

735 KB
Loading

docs/assets/v0.2.2.png

95.4 KB
Loading

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Chr.MixProject do
44
def project do
55
[
66
app: :chr,
7-
version: "0.2.1",
7+
version: "0.2.2",
88
elixir: "~> 1.15",
99
build_embedded: Mix.env() == :prod,
1010
start_permanent: Mix.env() == :prod,

mix.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
%{
22
"earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"},
3-
"ex_doc": {:hex, :ex_doc, "0.31.1", "8a2355ac42b1cc7b2379da9e40243f2670143721dd50748bf6c3b1184dae2089", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "3178c3a407c557d8343479e1ff117a96fd31bafe52a039079593fb0524ef61b0"},
3+
"ex_doc": {:hex, :ex_doc, "0.31.2", "8b06d0a5ac69e1a54df35519c951f1f44a7b7ca9a5bb7a260cd8a174d6322ece", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "317346c14febaba9ca40fd97b5b5919f7751fb85d399cc8e7e8872049f37e0af"},
44
"makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"},
5-
"makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"},
6-
"makeup_erlang": {:hex, :makeup_erlang, "0.1.4", "29563475afa9b8a2add1b7a9c8fb68d06ca7737648f28398e04461f008b69521", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f4ed47ecda66de70dd817698a703f8816daa91272e7e45812469498614ae8b29"},
5+
"makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"},
6+
"makeup_erlang": {:hex, :makeup_erlang, "0.1.5", "e0ff5a7c708dda34311f7522a8758e23bfcd7d8d8068dc312b5eb41c6fd76eba", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "94d2e986428585a21516d7d7149781480013c56e30c6a233534bedf38867a59a"},
77
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
88
"owl": {:hex, :owl, "0.9.0", "9b33d64734bd51d3fc1d6ed01b12f8c2ed23e1fbf8c43658a6dfbff62578bd03", [:mix], [{:ucwidth, "~> 0.2", [hex: :ucwidth, repo: "hexpm", optional: true]}], "hexpm", "cd70b55327985f8f24d38cb7de5bf8a8d24040e1b49cca2345508f8119ce81fd"},
99
"ucwidth": {:hex, :ucwidth, "0.2.0", "1f0a440f541d895dff142275b96355f7e91e15bca525d4a0cc788ea51f0e3441", [:mix], [], "hexpm", "c1efd1798b8eeb11fb2bec3cafa3dd9c0c3647bee020543f0340b996177355bf"},

0 commit comments

Comments
 (0)