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 wakatimeto 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
.zshrcfile and addzsh-wakatimeto 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.
