Movatterモバイル変換


[0]ホーム

URL:


WakaTime LogoWakaTime

WakaTime for TerminalTerminal

The open source plugin for productivity metrics, goals, leaderboards, and automatic time tracking.

wbinglee/zsh-wakatimeStarFollow

Installing

WakaTime can track your Terminal usage if you usezsh,bash,iTerm2,fish, orPowerShell.

Warning: Don’t use these Terminal plugins.

Instead, use theIDE plugins orDesktop apps.

Theeditor plugins provide a much nicer experience and more quality code stats data.

If your IDE isn’t supported, use theMac orWindows desktop app which can track any custom app on your machine.

Installing for zsh (with project detection)

This one detects your project from your CWD, instead of putting all your time in the same project.

  1. python3 -c "$(wget -q -O - https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py)".

  2. Usingantigen:antigen bundle sobolevn/wakatime-zsh-plugin

    Usingzgen:zgen load sobolevn/wakatime-zsh-plugin

    Or manually:cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/sobolevn/wakatime-zsh-plugin.git wakatime then addwakatime to thelist of plugins in your.zshrc file.

  3. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  4. Open a new terminal and type commands.

  5. Your zsh activity will be displayed on yourWakaTime Dashboard.

Installing for zsh (without project detection)

This one puts all your time the same project namedTerminal.

  1. Usingantigen:antigen bundle wbingli/zsh-wakatime

    Usingzgen:zgen load wbingli/zsh-wakatime

    Or manually:cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/wbingli/zsh-wakatime.git then addzsh-wakatime to thelist of plugins in your.zshrc file.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Open a new terminal and type commands.

  4. Activity from the zsh-wakatime plugin always goes in theTerminal project, so visithttps://wakatime.com/projects/Terminal to see your zsh activity.

Installing for bash

  1. python3 -c "$(wget -q -O - https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py)".

  2. git clone https://github.com/gjsheep/bash-wakatime.git.

  3. Include thebash-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.

  4. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  5. Open a new terminal and type commands.

  6. Activity from the bash plugin always goes in theTerminal project, so visithttps://wakatime.com/projects/Terminal to see your coding activity.

Installing for iTerm2

  1. DownloadWakaTime for Mac.

  2. MoveWakaTime.app into yourApplications folder, and runWakaTime.app.

  3. If prompted, enter yourAPI Key then clickSave.

  4. Use iTerm2 like normal and your coding activity will be displayed on yourWakaTime Dashboard.

Installing for fish

  1. curl https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py | python3 -

  2. fisher install ik11235/wakatime.fish

  3. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  4. Visithttps://wakatime.com/dashboard to see your fish usage.

Installing for fish

  1. python3 -c "$(wget -q -O - https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py)".

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Copy the contents offish-wakatime.sh into~/.config/fish/functions/fish_prompt.fish.

  4. Fish should pick this up instantly.

  5. Activity from the fish plugin always goes in theTerminal project, so visithttps://wakatime.com/projects/Terminal to see your coding activity.

Installing for Python REPLs

  1. Follow the instructions in thepython-wakatime repo corresponding to the Python REPL you’re using.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your python repl usage.

Installing for Perl Reply REPL

  1. Follow the instructions in thereply-plugin-prompt repo.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your perl repl usage.

Installing for Lua REPL luaprompt

  1. Follow the instructions in theprompt-style.lua repo.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your lua repl usage.

Installing for Tcl REPL

  1. Follow the instructions in thetcl-prompt repo.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your tcl repl usage.

Installing for Powershell

  1. Choose which Powershell implementation you want to use:

  2. Follow the installation instructions in your chosen repo.

  3. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  4. Visithttps://wakatime.com/dashboard to see your Powershell usage.

Installing for Bash

  1. Follow the instructions in thebash-prompt repo.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your Bash usage.

Installing for GDB

  1. Follow the instructions in thegdb-prompt repo.

  2. Make sure yourAPI Key is in your~/.wakatime.cfg file.

  3. Visithttps://wakatime.com/dashboard to see your GNU Project Debugger usage.

WakaTime plugins collect file path and project names from your IDE. Learn more aboutdata collected andprivacy.
more editors…
Install |Upgrade |Uninstall |Troubleshooting |Status

[8]ページ先頭

©2009-2025 Movatter.jp