mirror of
https://github.com/Vitexus/bash-wakatime.git
synced 2026-04-04 05:30:31 +00:00
No description
| debian | ||
| bash-wakatime.sh | ||
| Jenkinsfile | ||
| README.md | ||
BASH plugin for wakatime
Automatic time tracking for commands in BASH using wakatime.
Installation
Make sure you have configured wakatime API key in your ~/.wakatime.cfg file.
-
pip install wakatimeto install wakatime CLI, with 4.1 or higher. See more here for wakatime CLI. -
For bash users:
-
include the "bash-wakatime.sh" file in your "~/.bashrc" file with this command:
. path/to/bash-wakatime.sh -
or this command:
source path/to/bash-wakatime.sh -
But if you already have a PROMPT_COMMAND variable set, just merge yout own pre_prompt_command with the following one. And don't forget to create and configure your "~/.wakatime.cfg" file.
-
Open a new terminal and type commands