Skip to content

wakatime | Cheatsheet

Code stats right from your editor · Projects, languages, and branches automatically detected · Weekly email reports with your coding stats


Installation

Bash/Vim

mkdir -p ~/distfiles/linux/
python3 -c "$(wget -q -O - https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py)"
git clone https://github.com/gjsheep/bash-wakatime.git ~/distfiles/linux/bash-wakatime
bash /home/wuseman/distfiles/linux/bash-wakatime/install_cli.sh

cat <<EOF >> ~/.bashrc

## Count time for your work in commandline (bash) via wakatime.com
. /home/wuseman/distfiles/linux/bash-wakatime/bash-wakatime.sh
EOF
FILE: wakatime.cfg
[settings]
debug = false
api_key = your-api-key
api_key_vault_cmd = any shell command to get your api key from vault
api_url = https://api.wakatime.com/api/v1
hide_file_names = false
hide_project_names = false
hide_branch_names =
hide_project_folder = false
exclude =
^COMMIT_EDITMSG$
^TAG_EDITMSG$
^/var/(?!www/).*
^/etc/
include =
.*
include_only_with_project_file = false
exclude_unknown_project = false
status_bar_enabled = true
status_bar_coding_activity = true
status_bar_hide_categories = false
offline = true
proxy = https://user:pass@localhost:8080
no_ssl_verify = false
ssl_certs_file =
timeout = 30
hostname = machinename
log_file =  
[projectmap]
projects/foo = new project name
    ^/home/user/projects/bar(\d+)/ = project{0}

    [project_api_key]
    projects/foo = your-api-key
    ^/home/user/projects/bar(\d+)/ = your-api-key

    [git]
    submodules_disabled = false
    project_from_git_remote = false

    [git_submodule_projectmap]
    some/submodule/name = new project name
    ^/home/user/projects/bar(\d+)/ = project{0}