Skip to content

Instantly share code, notes, and snippets.

@bryanculver
Created July 1, 2015 01:43
Show Gist options
  • Save bryanculver/c6ab802c09f88ba0387c to your computer and use it in GitHub Desktop.
Save bryanculver/c6ab802c09f88ba0387c to your computer and use it in GitHub Desktop.
Open iA Writer From Command Line, Regardless If File Exists
# Add this to your ~/.zshrc config file.
# Builds upon:
# https://gist.github.com/adamstac/4271657
# https://gist.github.com/alexcabrera/3345929
# https://gist.github.com/brendanjerwin/996464
ia() { (test -e $1 || touch $1) && open $1 -a /Applications/iA\ Writer\ Pro.app }
# Tested in zsh, should work in other shells as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment