项目
在 GitHub 查看 
kalbhor/thirsty
关于
Reminds you to drink water - on your terminal.
开发工具实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Thirsty
zsh/bash script to remind you to drink water.
If 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. At the end of the day I used to realise that I had not consumed enough water. Hence I created a bash/zsh script to remind me to drink water right 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_waterinside 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_TIMEin seconds, eg :WATER_TIME=1200sets it to 20 mins. - Once notified, you can remove the message by simply typing
not_thirstyin your command line.
探索相关项目
加载中…