{"id":13796174,"url":"https://github.com/kalbhor/thirsty","last_synced_at":"2025-04-09T23:18:03.990Z","repository":{"id":86419610,"uuid":"82808062","full_name":"kalbhor/thirsty","owner":"kalbhor","description":"Reminds you to drink water - on your terminal.","archived":false,"fork":false,"pushed_at":"2017-07-05T09:22:05.000Z","size":933,"stargazers_count":316,"open_issues_count":2,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T23:18:00.074Z","etag":null,"topics":["bash","plugin","productivity","shell-script","thirsty","zsh"],"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/kalbhor.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}},"created_at":"2017-02-22T13:34:40.000Z","updated_at":"2025-04-03T11:20:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"9509a4d7-9e61-41ba-acaf-4ad0d1639e73","html_url":"https://github.com/kalbhor/thirsty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalbhor%2Fthirsty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalbhor%2Fthirsty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalbhor%2Fthirsty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalbhor%2Fthirsty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalbhor","download_url":"https://codeload.github.com/kalbhor/thirsty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125593,"owners_count":21051771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","plugin","productivity","shell-script","thirsty","zsh"],"created_at":"2024-08-03T23:01:07.125Z","updated_at":"2025-04-09T23:18:03.965Z","avatar_url":"https://github.com/kalbhor.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/lakshaykalbhor/Thirsty/master/out.gif\"\u003e\n\n# Thirsty\n\u003e zsh/bash script to remind you to drink water.\n\nIf you're like me and you spend a lot of time programming with the command line open, chances are that you forget about everything for hours, which includes drinking water.\n**At the end of the day I used to realise that I had not consumed enough water.**\nHence I created a bash/zsh script to remind me to drink water right on my command line.\n\n## How to use\n1. Copy the [thirsty.sh](thirsty.sh) file and paste it in your zshrc or bashrc or theme, etc.\n2. In your zshrc/theme/bashrc locate `PROMPT='$(some_function)'` or `PROMPT_COMMAND='$(some_function)'` for bash and add `drink_water` inside that function. *(This will be the case if you're using a theme)*\n3. If you can't locate `PROMPT`, then just add `PROMPT='$(drink_water)'` or `PROMPT_COMMAND='$(drink_water)'` for bash in the file.\n4. Set your time interval in the variable `WATER_TIME` in seconds, eg : `WATER_TIME=1200` sets it to 20 mins.\n5. Once notified, you can remove the message by simply typing `not_thirsty` in your command line.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalbhor%2Fthirsty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalbhor%2Fthirsty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalbhor%2Fthirsty/lists"}