/chr

The native commands history report for the default terminal users.

Primary LanguageClojureMIT LicenseMIT

CHR

The native commands history report for the default terminal users.

bb compatible Twitter: ThaddeusJiang

The name "CHR" is derived from commands history report.

I like Fig report, but I don't use Fig currently.πŸ˜… So, I want to make a same report for myself.

Fig 2022 Wrapped

Features

  • πŸ†Top Commands
  • πŸ“‚Top Directories
  • πŸ’¦Busiest Day
  • πŸ“…Weekly Activity
  • πŸ•™Daily Activity

Usage

$ bbin install https://raw.githubusercontent.com/ThaddeusJiang/chr/main/chr.clj

$ chr

If you don't use bbin, you have to install babashka first.

$ bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
$ git clone https://github.com/ThaddeusJiang/chr.git chr && cd $_
$ bb chr.clj

// or

$ bb -e '(load-string (slurp "https://raw.githubusercontent.com/ThaddeusJiang/chr/main/chr.clj"))'

result:

Total: 10017

πŸ†Top 10 commands
  3065 git
  1597 yarn
  1530 cd
   647 ls
   550 code
   219 docker
   176 exit
   153 mv
   140 rm
   137 clear

πŸ“‚Top 10 directories
    55 git/work/kyuyo/kyuyo-docs
    54 git/work/kyuyo/kyuyo-codes
    39 git/work/romu/romu-styleguide/apps/romu-frontend-core
    34 git/personal
    31 git/personal/codes/omakase-ui
    27 git/personal/codes
    22 git/work/romu/romu-docs
    22 git/work/romu/romu-frontend-root
    19 kyuyo-codes
    19 codes

πŸ’¦The busiest day
   402 commands on 2022-12-19

πŸ“…Weekly Activity
    Sunday β–ˆβ–ˆβ–ˆβ–ˆ
    Monday β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
   Tuesday β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
 Wednesday β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
  Thursday β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    Friday β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
  Saturday β–ˆβ–ˆβ–ˆ

πŸ•™Daily Activity
    00:00
    04:00
    05:00
    07:00
    08:00
    09:00 β–ˆβ–ˆ
    10:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    11:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    12:00 β–ˆβ–ˆ
    13:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    14:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    15:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    16:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    17:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    18:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    19:00 β–ˆβ–ˆβ–ˆ
    20:00 β–ˆβ–ˆ
    21:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    22:00 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
    23:00 β–ˆβ–ˆβ–ˆ

Author

πŸ‘€ Thaddeus Jiang

Thanks and Acknowledgements

This has been possible due to the previous work of numerous people. In particular:

  • @borkdude - Author of babashka, thanks for helping me remove the manual data preparation requirement

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❀️ by readme-md-generator