-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open XiEditor from the command line #111
Comments
Are you saying eventually you want a terminal front-end or just the ability to invoke the Gui from the command-line? If it's the latter we can just package your script into the .app & on startup check for /usr/local/bin/xi - if missing copy it there. |
@vlovich Right, I'm talking about essentially packaging this script; I had the idea that it might make sense to add various options, but that can be future work. I'm not sure how best we would go about installing this; we don't necessarily know the path to the |
perhaps not useful but this is the alias I use for "opening XiEditor from the [cmd] line":
|
I wanted to make a more detailed set of instructions for idiots like myself (Who took 4 hours to get this to work)
type (*You can change the name of the alias to anything you want. |
This is typically done on OSX by bundling the script into the .app & then offering an option to deploy it into /usr/local/bin if it's not present. Would be happy to accept a PR that does this. |
Absent a smarter method of finding the location of XiEditor.app, the "/Applications" portion of the script can be left off. By default, "open -a" will search both /Applications and ~/Applications, and while I imagine most people will put it in the root Applications, there might be some who put it in the user Applications folder. |
In fact it's even smarter: it will remember the location of the .app if it has been launched before (which it has to be in #242) so it doesn't even have to be in Applications. |
There's a menu item for installing the helper script mentioned in the OP now. |
We'd like this eventually. In the interim, I currently have a teeny bash script at
/usr/local/bin/xi
:This requires XiEditor to be installed somewhere, like /Applications. You can also replace
XiEditor
with a path to the app bundle.edit: simplified script
The text was updated successfully, but these errors were encountered: