{"id":41151547,"url":"https://github.com/prplwtf/bashatime.sh","last_synced_at":"2026-01-22T19:07:15.559Z","repository":{"id":318547407,"uuid":"1071754159","full_name":"prplwtf/bashatime.sh","owner":"prplwtf","description":"this is not a proper wakatime plugin","archived":false,"fork":false,"pushed_at":"2025-11-24T18:30:43.000Z","size":75,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-13T09:53:42.071Z","etag":null,"topics":["bash","bash-script","wakatime","wakatime-api"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prplwtf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-07T19:08:48.000Z","updated_at":"2025-12-09T17:06:19.000Z","dependencies_parsed_at":"2025-10-07T21:21:52.107Z","dependency_job_id":"a159ac64-176c-4b0d-8caa-6f23d20379da","html_url":"https://github.com/prplwtf/bashatime.sh","commit_stats":null,"previous_names":["prplwtf/bashatime"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prplwtf/bashatime.sh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prplwtf%2Fbashatime.sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prplwtf%2Fbashatime.sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prplwtf%2Fbashatime.sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prplwtf%2Fbashatime.sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prplwtf","download_url":"https://codeload.github.com/prplwtf/bashatime.sh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prplwtf%2Fbashatime.sh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28668874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","wakatime","wakatime-api"],"created_at":"2026-01-22T19:04:07.129Z","updated_at":"2026-01-22T19:07:15.546Z","avatar_url":"https://github.com/prplwtf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![bashatime](./bashatime.jpg)\n\n# bashatime.sh\n\n[![Athena Award Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Faward.athena.hackclub.com%2Fapi%2Fbadge)](https://award.athena.hackclub.com?utm_source=readme)\n\n\u003cbr/\u003e\n\n## Installation\n\n**Requirements**\n- A Linux machine (MacOS might work too, untested though)\n- `inotify-tools`, to watch for files\n- `git`, to know what files to watch\n- `bash`, to run the script\n- `wakatime`/`wakatime-api`, to submit your progress to wakatime\n\n### Clone the repository\n\nFirst, clone the bashatime repository to your local machine. This is bashatime's installation directory. You can use a different directory to the one used in the command below, if you know what you are doing.\n\n```bash\ngit clone https://github.com/prplwtf/bashatime.sh.git ~/.bashatime\n```\n\n### Make executable\n\nTo run bashatime, you have to make it executable.\n\n```bash\nchmod +x ~/.bashatime/bashatime.sh\n```\n\n### Make it a command\n\nIn your `~/.bashrc` or `~/.zshrc`, create an alias for `~/.bashatime/bashatime.sh` to run it more easily.\n\n```bash\n# When using bash\necho \"alias bashatime=\\\"~/.bashatime/bashatime.sh\\\"\" \u003e\u003e ~/.bashrc\n\n# When using zsh\necho \"alias bashatime=\\\"~/.bashatime/bashatime.sh\\\"\" \u003e\u003e ~/.zshrc\n```\n\n### Source the shell config\n\nFinally, source the shell config to apply the alias to your current session.\n\n```bash\n# When using bash\nsource ~/.bashrc\n\n# When using zsh\nsource ~/.zshrc\n```\n\n### Run bashatime from your project directory\n\nRun the bashatime script from your project's root directory. You have to do this every time you code.\n\n```bash\nbashatime\n```\n\n## Configuration\n\nTo create a bashatime configuration, make a file called `.bashatimerc` in the project's directory. The following configuration options are currently supported:\n\n```bash\n# The name of your project, defaults to the parent folder name\nPROJECT_NAME=\"\"\n\n# Uncomment to output verbose logs as well\n#LOG_VERBOSE=\"1\"\n```\n\n### Wakatime configuration\n\nbashatime uses the `wakatime-api` cli tool to submit heartbeats. Use the `~/.wakatime.cfg` config for your API url, key, and other configuration options.\n\n## Limitations\n\nbashatime has a few known limitations, it's a bash script after all.\n\n- When deleting tracked files, bashatime might return errors when updating any file. To fix this, commit your deleted files in git.\n- bashatime does not know your editor's buffer cursor position. It tries to \"guess\" the cursor position based on file changes, but will never be 100% accurate.\n- Configuration options are lacking right now, but more might be introduced at some point in the future.\n\n## Contributing\n\nContributions are welcome. Whenever making changes to `bashatime.sh`, please make sure it passes shellcheck to avoid weird edge-cases and shell freak-outs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprplwtf%2Fbashatime.sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprplwtf%2Fbashatime.sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprplwtf%2Fbashatime.sh/lists"}