This is a simple script to launch iA Writer from the terminal. It is extremely useful for interacting with Github's own wiki system as it provides git
access.
curl -L https://raw.github.com/gist/2025540/4f3f094286468db2588f40345e6faaf07bd5af2a/ia > /usr/local/bin/ia && chmod u+x /usr/local/bin/ia
- Copy the script below to
/usr/local/bin
(or anywhere else where you store your custom executables) - Make it executable:
chmod u+x /usr/local/bin/ia
Simple launch
$ ia
Launch and open a file
$ ia Home.md
Launch multiple files
$ ia Home.md About.md FAQ.md
I've ported this to bash - just changing the header and the appending to the args variable.
I did find a little bug in your snippet though. If you have the iA Writer app open already, and try to open something from the shell, you will end up with a new empty file and not the files you asked for.
I tinkered around with it a bit, and found that if I removed the --args flag it worked.