Skip to content

Gravifer/posh-wakatime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powershell plugin for wakatime

time tracker

Automatic time tracking for commands in Powershell using wakatime.

Installation

Make sure you have configured wakatime API key in your ~/.wakatime.cfg file.

  1. pip install wakatime to install wakatime CLI, with 4.1 or higher. See more here for wakatime CLI.

  2. For PSGallery users:

  1. For GitHub users:
  • git clone https://github.com/Gravifer/posh-wakatime.git
  • include the "Powershell-wakatime.sh" file in your $profile file.
  • But if you already have a PROMPT_COMMAND variable set, just merge yout own pre_prompt_command with the following one. And don't forget to create and configure your "~/.wakatime.cfg" file.
  1. Open a new terminal and type commands

  2. Visit https://wakatime.com/project/Terminal

Attribution

Codes and ideas are integrated from bash-wakatime, powerwaka, posh-git, conda(powershell).

TODOs

  • Submission to WakaTime.com
  • Auto-installation of WakaTime CLI in the module path, rather than using the one in path. (Will provide better robustness)
  • Correct attribution to contributors.

About

PowerShell plugin for wakatime

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 100.0%