Automatic time tracking for commands in ZSH using wakatime.
It depends on zsh 6.0 or higher.
Also make sure you have configured wakatime API key in your ~/.wakatime.cfg file.
-
pip install wakatime
to install wakatime CLI, with 6.0 or higher. Check wakatime CLI version bywakatime --version
. See more here for wakatime CLI. -
For oh-my-zsh user:
-
cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/wbinglee/zsh-wakatime.git
-
Edit your
.zshrc
file and addzsh-wakatime
to oh-my-zsh plugins
- For Antigen user:
antigen bundle wbinglee/zsh-wakatime
-
Open a new terminal and type commands
WakaTime plugins share a common config file .wakatime.cfg
located in your user home directory with these options available.