Code Monkey home page Code Monkey logo

shell-time's Introduction

Shell Time

Shell Time is for your shell, what Screen Time is for your phone!

Shell Time lets you know how much time you and your kids spend on CLIs, TUIs, and more. This way, you can make more informed decisions about how you use your terminals.

Shell Time shows you your top most used commands, the (rough) amount of time you spend in your terminal per day and the hours you seem to be most drawn to the command line! It can give you interesting insights into your shell usage and remind you of long forgotten tools.

TODO: GIFs

Installation

Either download a build from the releases page or clone this repository and run:

go build

or

go install

Configuration

Zsh

Nothing to configure!

Bash

TODO

Usage

shell-time

Example output:

=== YOUR TOP 10 COMMANDS ===
 1. vim (2198 times)
 2. cd (1757 times)
 3. rm (1132 times)
 4. mv (1117 times)
 5. find (1115 times)
 6. ls (888 times)
 7. ga (729 times)
 8. rg (672 times)
 9. cat (655 times)
10. git (605 times)

=== LONG FORGOTTEN COMMANDS ===
 1. dmesg\
 2. head
 3. ks
 4. freecad
 5. lokinet-bootstrap
 6. uuidgen
 7. mbe
 8. docnf
 9. gpoat
10. 27*100

=== MOST PRODUCTIVE HOURS ===
 1. 1:00 (421 commands fired)
 2. 2:00 (188 commands fired)
 3. 21:00 (1643 commands fired)
 4. 22:00 (1216 commands fired)
 5. 0:00 (1048 commands fired)

On average you ran commands on the shell for about 19 minutes per day.

shell-time's People

Contributors

mrusme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shell-time's Issues

most productive hours seems sorted alphabetically not numerically?

Maybe I'm misunderstanding the logic behind this, but it seems like a lexicographic sort:


=== MOST PRODUCTIVE HOURS ===
 1. 1:00 (421 commands fired)
 2. 2:00 (188 commands fired)
 3. 21:00 (1643 commands fired)
 4. 22:00 (1216 commands fired)
 5. 0:00 (1048 commands fired)

or is there some other logic here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.