Skip to content
/ lmk Public

A CLI tool to draw your attention to a terminal when a command finishes running

License

Notifications You must be signed in to change notification settings

fgrehm/lmk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let me know

lmk is a simple command line tool written in Go that draws your attention to a terminal when another command finishes running.

WTF?!?

Yeah, it may sound silly but how often do you run a command that you know that takes a lot of time to complete, you go do something else and forget that the command was running? Even worse, what about when you get side tracked for a bit longer than you should and when you Alt+Tab to check if the command has finished it actually errored along the way?

Those situations happen to me more than you might think. Throughout the day I might run many bundle installs, vagrant ups, rake specs, etc.. that takes more than a few seconds to complete. Because looking at a black screen with a blinking cursor and a whole lot of output is pretty boring, during that period I usually Alt+Tab to check my emails or twitter and many times I get side tracked before realizing that I should have been doing something else.

How does it work?

Let's say you want to run the specs for that legacy project you have just been assigned and the full run takes 5 minutes to complete. With lmk you can run lmk rake spec and as soon as rake spec finishes running you'll see a notify-send notification poping up on your desktop.

But that's not enough, what if you miss the notification while you are away from the keyboard? Well, in that case lmk will keep letting you know that the command finished every 30 seconds until you go back to the terminal session that you left the command running and hit Enter.

Installation

Binary releases

lmk can be easily installed as an executable. Download the latest compiled binary forms of lmk for Linux and Darwin and drop it somewhere in your $PATH.

Homebrew

brew tap fgrehm/lmk
brew install lmk

Usage

Usage: lmk [options...] command

Options:
  -m  Message to display in case of success, defaults to "[command] has completed successfully"

Dependencies

  • Linux: notify-send
  • OSX: osascript

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A CLI tool to draw your attention to a terminal when a command finishes running

Resources

License

Stars

Watchers

Forks

Packages

No packages published