Thirsty
zsh/bash script to remind you to drink water.
If you're like me and you spend a lot of your time programming with the command line open, chances are that you forget drinking water for a long period of time. At the end of the day I would find out that I haven't had enough water. Hence I created a bash script that reminds me to drink water on my command line.
How to use
- Copy the thirsty.sh file and paste it in your zshrc or bashrc or theme, etc.
- In your zshrc/theme/bashrc locate
PROMPT='$(some_function)'
orPROMPT_COMMAND='$(some_function)'
for bash and adddrink_water
inside that function. (This will be the case if you're using a theme) - If you can't locate
PROMPT
, then just addPROMPT='$(drink_water)
orPROMPT_COMMAND='$(drink_water)
for bash in the file. - Set your time interval in the variable
WATER_TIME
in seconds, eg :WATER_TIME=1200
sets it to 20 mins. - Once notified, you can remove the message by simply typing
not_thirsty
in your command line.
Contribute
Since my knowledge on bash/zsh is limited, I'd be more than willing to accept improvements and additional features in this script.