Created
November 22, 2017 00:07
-
-
Save ericvanjohnson/f4defc82f8524a4a6b8e9da2dca0ca03 to your computer and use it in GitHub Desktop.
Launch focus using ZSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Started using Focus https://heyfocus.com/ | |
# But I wanted to launch it from the command line | |
# They had bash commands but I use ZSH so I wrote this script | |
# It lauches with the BASH shell and allows optional times to pass | |
open focus://focus?minutes=${1:-15} | |
# Make file executable | |
# chmod +x /path/to/HeyFocus.sh | |
# I then create an alias in .oh-my-zsh-custom-alias.sh | |
# alias fc='/path/to/HeyFocus.sh' | |
# To run from the command line | |
# fc 20 | |
# This would turn on focus for 20 minutes. | |
# If no argument is passed, it will default o 15 minutes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment