From e8691f731a98880962ae530db5650dc12f217562 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 9 Aug 2021 22:57:55 +0300 Subject: [PATCH] add wakatime --- .wakatime.cfg | 5 +++++ bash/.bashrc | 3 +++ bash/README.md | 16 ++++++++++++++++ micro/README.md | 3 +++ 4 files changed, 27 insertions(+) create mode 100644 .wakatime.cfg create mode 100644 bash/README.md create mode 100644 micro/README.md diff --git a/.wakatime.cfg b/.wakatime.cfg new file mode 100644 index 0000000..3f14bf4 --- /dev/null +++ b/.wakatime.cfg @@ -0,0 +1,5 @@ +[settings] +debug = true +api_key = +status_bar_icon = true +status_bar_coding_activity = true diff --git a/bash/.bashrc b/bash/.bashrc index e9237a5..3eb6b26 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -2,6 +2,9 @@ [[ $- != *i* ]] && return source /usr/share/git/completion/git-completion.bash +source $HOME/.config/bash-wakatime/bash-wakatime.sh + +export PATH="$PATH;/home/alex/.local/bin" ENDCOLOR="\e[m" PS1="\e[36m\h${ENDCOLOR} \e[35m\W${ENDCOLOR} \$> " diff --git a/bash/README.md b/bash/README.md new file mode 100644 index 0000000..65074b6 --- /dev/null +++ b/bash/README.md @@ -0,0 +1,16 @@ +## WakaTime +```bash +pip3 install wakatime +``` + +```bash +git clone https://github.com/gjsheep/bash-wakatime.git +``` + +Include the `bash-wakatime.sh` file in your `~/.bashrc` file. + +```bash +source $HOME/.config/bash-wakatime/bash-wakatime.sh +``` + +Make sure your [API Key](https://wakatime.com/settings/api-key) is in your `~/.wakatime.cfg` file. diff --git a/micro/README.md b/micro/README.md new file mode 100644 index 0000000..2be6a6a --- /dev/null +++ b/micro/README.md @@ -0,0 +1,3 @@ +```bash +$ micro -plugin install wakatime +```