thirsty

Reminds you to drink water - on your terminal.
授权协议 MIT License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 赵英资
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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

  1. Copy the thirsty.sh file and paste it in your zshrc or bashrc or theme, etc.
  2. 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)
  3. If you can't locate PROMPT, then just add PROMPT='$(drink_water)' or PROMPT_COMMAND='$(drink_water)' for bash in the file.
  4. Set your time interval in the variable WATER_TIME in seconds, eg : WATER_TIME=1200 sets it to 20 mins.
  5. Once notified, you can remove the message by simply typing not_thirsty in your command line.
  • 1 课文 What evidence is there of a ghost? A public house which was recently bought by Mr.Ian Thompson is up for sale. 【1 a public house: 小酒馆 2 be up for sale 准备出售】 Mr.Thompson is going to sell it becaus

  • 新概念英语(1-19)Tired and thirsty  Why do the children thank their mother? A:What's the matter, children? B:We are tired... and thirsty, Mum. A:Sit down here. B:Are you all right now? A:No, we aren't. B:Lo

  • 今天开始 学习  。。。。作个记录 what's the matter children we are tired and thirsty mum sit down here are you all right now no we aren't look there's an ice cream man two ice creams please here you are children tha

  • What`s the matter,children? We`re tired... ...and thirsty,Mum. Sit down here. Are you all right now? No,we aren`t. Look! There`s an ice cream man. Two ice creams please. Here you are,children. Thanks,

  • Thirty means thirsty,  Thirty equals thirsty. When the anxious has gone, When the desire has gone. There is nothing, Nothing left.[@more@] 来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/206020/viewspace-953

  • 原文 A public house which was recently bought by Mr. Ian Thompson is up for sale. Mr. Thompson is going to sell it because it is haunted. He told me that he could not go to sleep one night because he he

相关阅读

相关文章

相关问答

相关文档