irondoge / bash-wakatime Goto Github PK
View Code? Open in Web Editor NEWBASH plugin for wakatime
BASH plugin for wakatime
I get the following error on WSL:
: command not found
bash: /home/<username here>/bash-wakatime.sh: line 12: syntax error near unexpected token `$'{\r''
'ash: /home/<username here>/bash-wakatime.sh: line 12: `pre_prompt_command() {
This used to work fine in Git Bash. I recently came over to WSL2 and I am unable to get it to work.
In https://github.com/irondoge/bash-wakatime/blob/master/bash-wakatime.sh#L17
(~/.wakatime/wakatime-cli --write --plugin "bash-wakatime/$version" --entity-type app --project "$project" --entity "$entity" 2>&1 > /dev/null &)
Why not let user install wakatime-cli from their package manager (apt/yum/pacman/emerge/brew/nix)?
Could this be ported to PowerShell?
We can overload the Prompt Function there as well - but I don't know enough about Bash to translate and build the same thing up there.
It still says pip install wakatime
to install the CLI. But the python CLI is deprecated. So, is this project still maintained?
usage: wakatime [-h] [--entity FILE] [--key API_KEY] [--write]
[--plugin PLUGIN] [--time time] [--lineno INT]
[--cursorpos INT] [--entity-type ENTITY_TYPE]
[--category CATEGORY] [--proxy PROXY] [--no-ssl-verify]
[--ssl-certs-file FILE] [--project PROJECT]
[--alternate-project PROJECT] [--language LANGUAGE]
[--local-file FILE] [--hostname HOSTNAME] [--disable-offline]
[--hide-file-names] [--hide-project-names]
[--hide-branch-names] [--exclude PATH]
[--exclude-unknown-project] [--include PATH]
[--include-only-with-project-file] [--extra-heartbeats]
[--log-file FILE] [--api-url URL] [--timeout SECONDS]
[--sync-offline-activity AMOUNT] [--today] [--config FILE]
[--config-section SECTION] [--config-read KEY]
[--config-write KEY VALUE] [--verbose] [--version]
wakatime: error: argument --entity: expected one argument
I found an issue when moving to .git
directory in a repository.
cd .git
basename: missing operand
Try 'basename --help' for more information.
This issue is caused by git rev-parse --show-toplevel
$ cd /home/iberianpig/.ghq/github.com/gjsheep/bash-wakatime
$ git rev-parse --show-toplevel
/home/iberianpig/.ghq/github.com/gjsheep/bash-wakatime # ok
$ cd .git
$ git rev-parse --show-toplevel
$ # no output
https://wakatime.com/faq#exclude-paths
Sensitive file names still leave the computer
Can somebody here help me troubleshoot this problem?I just followed the guide at https://wakatime.com/help/plugins/terminal under Bash section but after doing all the guide, every time I open my bash, this error always appear:
usage: wakatime [-h] [--entity FILE] [--key KEY] [--write] [--plugin PLUGIN]
[--time time] [--lineno LINENO] [--cursorpos CURSORPOS]
[--entity-type ENTITY_TYPE] [--proxy PROXY]
[--project PROJECT] [--alternate-project ALTERNATE_PROJECT]
[--alternate-language ALTERNATE_LANGUAGE]
[--hostname HOSTNAME] [--disableoffline] [--hidefilenames]
[--exclude EXCLUDE] [--include INCLUDE] [--extra-heartbeats]
[--logfile LOGFILE] [--apiurl API_URL] [--timeout TIMEOUT]
[--config CONFIG] [--verbose] [--version]
wakatime: error: argument --entity is required
Wakatime works after 2 or more clear
command. I guess there is something wrong with the bash-wakatime.sh. I did some chown and chmod 666 on .waka* files: .wakatime.cfg
.wakatime.db
and .wakatime.log
, but still, the error still appears.
Thank you for your help! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.