• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple yet powerful pomodoro tracker in pure Shell

p is for people who find that other pomodoro tools slow them down.

Build Status

p is the fastest pomodoro tool you've ever used. It uses a simple tracking log file (~/.p.log by default) to keep track of your pomodoros and record simple statistics. It's less than 200 lines of pure Shell.

demo

For more information on the pomodoro technique see http://pomodorotechnique.com.

Installation

To install to ~/bin, paste this into your command line:

curl https://raw.githubusercontent.com/chrismdp/p/master/p > ~/bin/p
chmod +x ~/bin/p

Usage

Controlling the Pomodoro

To start a pomodoro:

$ p start Doing stuff
Pomodoro started on "Doing stuff"

To check what we're currently doing, just type p status (or just p with no arguments):

$ p
🍅 24:34 on "Doing stuff"

To cancel a pomodoro:

$ p cancel
Cancelled. Don't worry: the next Pomodoro will go better!

Monitoring the Pomodoro

To play a ringing sound (or do any other action) at the end of a pomodoro use a command such as this:

$ p wait && afplay ring.wav
🍅 24:21 on "Doing stuff"

# (Time passes)

🍅 00:00 on "Doing stuff" completed. Well done!

To run a script each second you are waiting (to play a ticking sound, for example), pass the command as following arguments to wait:

$ p wait afplay tick.wav && afplay ring.wav

This command will be run as a seperate process, and started every second. Make sure that it finishes in a timely fashion!

Here are some example sounds you might like:

http://www.freesound.org/people/DrMinky/sounds/174721/ http://www.freesound.org/people/jorickhoofd/sounds/160052/ http://www.freesound.org/people/Benboncan/sounds/77695/

Continual monitoring

To continually loop, running commands each second a pomodoro is running and each time one finishes, use p loop:

$ p loop "afplay tick.wav" "afplay ring.wav"

Use Ctrl-C to quit this loop.

Producing statistics

To look at your basic stats, type p log or have a look at your ~/.p.log file. It's in a simple CSV format:

$ p log

2015-05-06 10:04:20 +0100,'''-',Doing stuff
2015-05-06 10:35:20 +0100,',Doing more stuff

It should be possible to do some quite interesting statistical analysis. If you come up with anything let me know!

Credits

Chris Parsons - http://chrismdp.com

More Repositories

1

example-nodejs-project

An example project to show the way I'm testing node.js
JavaScript
23
star
2

book

Simple, easy creation of books using ruby
Ruby
20
star
3

checkout-kata

Code Kata: "Back to the checkout"
Ruby
10
star
4

dotfiles

My dotfiles
Vim Script
9
star
5

pushy

Google Wave Robot to publish Github commits
Python
9
star
6

tinyking

Tiny King
JavaScript
9
star
7

rlisa

Ruby version of the 'mona lisa' GA approximator
Ruby
8
star
8

sing_pomodoro

Pomodoro tracking app
JavaScript
7
star
9

chrismdp.github.com

HTML
6
star
10

morning-pages

A gem to help you manage your daily morning pages
Ruby
5
star
11

rack-usermanual

Rack endpoint to serve your cucumber features as a user manual
Ruby
5
star
12

bigcity

Highrise Contacts -> Google Contacts
Ruby
4
star
13

iworkedwith

I worked with...
Ruby
3
star
14

jabbersonic

Create and influence a perpetual soundscape through Jabber messages
Ruby
3
star
15

cucumber-training

Ruby
3
star
16

xero-expense-adder

A little utility script to convert expenses to a Xero payable invoice.
Ruby
3
star
17

capsulecontacts

Easying viewing of contacts from Capsule CRM.
JavaScript
2
star
18

archivey

Archivey: Google Wave Robot to remove all but latest blips from a wave
Python
2
star
19

snakesandladders

Skeleton for the Snakes and Ladders Kata
Ruby
2
star
20

pairzone

Pair with anyone, on any git repository, right now.
Ruby
1
star
21

sicp-study

My exercises for sicp
Scheme
1
star
22

pathfinding-peril

The Pathfinding Peril game server
JavaScript
1
star
23

soltrader

(spacestuff)
Ruby
1
star
24

morning-pages.me

Website for morning-pages gem
Ruby
1
star
25

cardpirates

cardpirates.com
HTML
1
star
26

spacemud

THE AWESOMEST SPACE MUD EVER
Ruby
1
star