Parameters: ~/.wakatime/wakatime-cli -entity Terminal -entity-type app -plugin "iterm2-wakatime/0.0.Include the bash-wakatime.sh file in your ~/.bashrc file with this command:īut if you already have a PROMPT_COMMAND variable set, just merge your own pre_prompt_command with the following one.Īctivity from the bash plugin always goes in the Terminal project, so visit to see your coding activity.Īdd a new iTerm2 Trigger with these settings: zshrc file.Īctivity from the zsh-wakatime plugin always goes in the Terminal project, so visit to see your zsh activity. Or manually: cd ~/.oh-my-zsh/custom/plugins & git clone then add zsh-wakatime to the list of plugins in your. Using zgen: zgen load wbingli/zsh-wakatime By echoing the zeroth argument of your command, designated by the variable 0, you can learn what shell you're interfacing with. Using antigen: antigen bundle wbingli/zsh-wakatime Set zsh as your default shell by running the following command in iTerm2, and then relaunch the terminal: chsh -s / bin /zsh You can verify the shell you're running with the echo command. This one puts all your time the same project named Terminal. Installing for zsh ( without project detection) Your zsh activity will be displayed on your WakaTime Dashboard. Make sure your API Key is in your ~/.wakatime.cfg file. Or manually: cd ~/.oh-my-zsh/custom/plugins & git clone wakatime then add wakatime to the list of plugins in your. Using zgen: zgen load sobolevn/wakatime-zsh-plugin Using antigen: antigen bundle sobolevn/wakatime-zsh-plugin This one detects your project from your CWD, instead of putting all your time in the same project. Installing for zsh ( with project detection) The normal editor plugins give much better coding stats. Only use the terminal plugins if you don't work in a text editor or IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |