WakaTime can track your Terminal usage if you use zsh, bash, iTerm2, or fish.
sudo pip install wakatime.
cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/wbinglee/zsh-wakatime.git or however you manage your zsh plugins.
Edit your .zshrc file and add zsh-wakatime to oh-my-zsh plugins.
Make sure your API key is in your ~/.wakatime.cfg file.
Open a new terminal and type commands.
Activity from the zsh plugin always goes in the Terminal project, so visit https://wakatime.com/project/Terminal to see your logged time.
sudo pip install wakatime.
git clone https://github.com/gjsheep/bash-wakatime.git.
Include the bash-wakatime.sh file in your ~/.bashrc file with this command:
source path/to/bash-wakatime.sh
But if you already have a PROMPT_COMMAND variable set, just merge your own pre_prompt_command with the following one.
Make sure your API key is in your ~/.wakatime.cfg file.
Open a new terminal and type commands.
Activity from the bash plugin always goes in the Terminal project, so visit https://wakatime.com/project/Terminal to see your logged time.
sudo pip install wakatime.
Add a new iTerm2 Trigger with these settings:
.*Run Command…wakatime --entity Terminal --entity-type app --plugin "iterm2-wakatime/0.0.1" --project "<<LAST_PROJECT>>"
Make sure your API key is in your ~/.wakatime.cfg file.
Open a new iTerm2 terminal and type commands.
Activity from the iTerm2 trigger goes into whichever project you last coded in, so visit https://wakatime.com/dashboard to see your logged time.
sudo pip install wakatime.
Make sure your API key is in your ~/.wakatime.cfg file.
Copy the contents of fish-wakatime.sh into ~/.config/fish/functions/fish_prompt.fish.
Fish should pick this up instantly.
Activity from the fish plugin always goes in the Terminal project, so visit https://wakatime.com/project/Terminal to see your logged time.