https://github.com/quentinlintz/cmdtop
⌨️ A tool for showing your top commands
https://github.com/quentinlintz/cmdtop
cli go
Last synced: 11 months ago
JSON representation
⌨️ A tool for showing your top commands
- Host: GitHub
- URL: https://github.com/quentinlintz/cmdtop
- Owner: quentinlintz
- License: mit
- Created: 2024-06-17T00:07:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T18:36:06.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T02:46:10.210Z (about 1 year ago)
- Topics: cli, go
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: history/bash_parser.go
- License: LICENSE
Awesome Lists containing this project
README
cmdtop
Analyze your command history.
Table of Contents
## About The Project
Have you ever wondered what commands you're running the most for work or personal projects? `cmdtop` lets you show off your history as a way of showcasing favorite tools, processes, or just plain habits.
Here's my `cmdtop`:
```
Top 5 commands:
1: ls (46)
2: cd (40)
3: vi (25)
4: yay (20)
5: go (15)
```
At the top is `ls` (pretty common) and I've used it _46_ times.
## Getting Started
### Prerequisites
Follow the instructions for downloading and installing [Go](https://go.dev/doc/install).
### Installation
1. Clone the repo
```
git clone https://github.com/quentinlintz/cmdtop.git
```
2. Change directory and run the command
```
cd cmdtop
go run .
```
## Usage
* Use the `-h` flag to list detailed flag usage
* Use the `-top {int}` flag to choose how many top commands to display
* Use the `-version` flag to check the version
* Use the `-license` flag to view the software license
## Roadmap
- [x] Add zsh parser
- [x] Add bash parser
- [x] Add fish parser
- [ ] Enhance output format (open to creative ideas!)
See the [open issues](https://github.com/quentinlintz/cmdtop/issues) for a full list of proposed features (and known issues).
## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Quentin Lintz - [@quentinlintz](https://x.com/quentinlintz) - quentinlintz@outlook.com
Project Link: [https://github.com/quentinlintz/cmdtop](https://github.com/quentinlintz/cmdtop)