Quick tip for not losing focus when running slow command-line tasks, such as
bundle install or god forbid
gem install nokogiri.
After reading this post about an utility to notify you of long running tasks (Linux only), I decided to clone it using just zsh and a ruby gem.
Put this in your
.bashrc or equivalent:
This snippet declares a function
lmk (let me know) that will execute whatever is passed to it
$*, and then use
terminal-notifier to show a notification.
Make sure you install
terminal-notifier by using:
lmk function, if not available yet
source ~/.zshrc and test it:
You should see something like this: