Automatic time tracking for commands in ZSH using wakatime.
It depends on wakatime CLI 6.0 or higher. Make sure you have configured wakatime API key in your ~/.wakatime.cfg file. If you use wakatime in other editors, this file may be already there.
-
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/wbingli/zsh-wakatime.git
-
Edit your
.zshrc
file and addzsh-wakatime
to oh-my-zsh plugins
- For Antigen user:
antigen bundle wbingli/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.