Loading repository data…
Loading repository data…
victor-gurbani / repository
Terminal-Wrapped is a Python tool that generates insightful statistics and visualizations from your terminal command history. It supports Bash, Zsh, and Fish shells, and provides a web interface to display your command usage patterns in a fun and informative way.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Inspired from Spotify Wrapped
🚀 Terminal-Wrapped is a Python tool that generates insightful statistics and visualizations from your terminal command history. It supports Bash, Zsh, and Fish shells, and provides a web interface to display your command usage patterns in a fun and informative way.
To quickly set up and run Terminal-Wrapped, you can use the following command:
curl -s https://raw.githubusercontent.com/victor-gurbani/terminal-wrapped/main/quickstart.sh | bash
Clone the repository:
git clone https://github.com/victor-gurbani/terminal-wrapped.git
cd terminal-wrapped
Create a virtual environment (optional but recommended):
python3 -m venv venv
source venv/bin/activate
Install the required dependencies:
pip install -r requirements.txt
Run the main.py script to generate your terminal usage statistics:
python main.py
Specify Shell: By default, the script attempts to detect your current shell. To specify a shell manually, use the --shell option:
python main.py --shell bash
Supported shells are bash, zsh, and fish.
Specify History File: To use a custom history file, use the --history option:
python main.py --history /path/to/history_file
The script outputs statistics to the console and starts a Flask web server at http://0.0.0.0:8081.
Open your web browser and navigate to http://localhost:8081 to view your terminal usage wrapped in an interactive web interface with charts.
[!NOTE]
To ensure time-specific statistics are shown, check that the following are enabled for your shell:
- For Zsh - EXTENDED_HISTORY (oh-my-zsh has it enabled by default)
- For Bash - HISTTIMEFORMAT
Commands executed before configuring the option won't be recorded with a timestamp, affecting the stats.
terminal-wrapped/
├── main.py
├── README.md
└── templates/
└── index.html
Contributions are welcome! Feel free to submit issues or pull requests to improve the project.
This project is licensed under the MIT License. See the LICENSE file for more details.