Comments (5)
Interesting question. I would think that the way to look up executables would be to set the PATH environment variable correspondingly and then launch Brackets when it is set as desired. In Linux for example this can be done as follows http://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux That is, the plugin should know as little as possible about the system paths as the environment in which Brackets is executed should handle it well enough. The things that the plugin should mostly deal with is how to capture some context from Brackets and pass appropriate parameters to commands. Please, let me know your further thoughts and whether the solution works for you.
from brackets-command-line-shortcuts.
I have those additional paths configured in my bash_profile
though.
from brackets-command-line-shortcuts.
I quickly checked that if a script/command is placed to /usr/local/bin then it can be executed from Brackets. I also was able to execute 'java' which is installed in a sub-directory in the home directory and is added to the PATH environment variable.
Do you have the same problem when you launch Brackets from a Bash shell instance? How do you launch Brackets?
from brackets-command-line-shortcuts.
I normally launch Brackets from my Dock or using Spotlight (I'm on OS X).
Everything seems to work perfectly when I launch from Terminal.
When launched through Dock or Spotlight, I get the error "ERROR: /bin/sh: phpspec: command not found"
from brackets-command-line-shortcuts.
I normally launch Brackets from my Dock or using Spotlight (I'm on OS X).
Everything seems to work perfectly when I launch from Terminal.
Unfortunately, as there is no Mac around I cannot reproduce this particular issue.
I would think that there should be a way to launch an app with passing some desirable environment variables to it in OS X.
Not sure if this helps, but maybe the environment variables should be set in /etc/launchd.conf as described here http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x
from brackets-command-line-shortcuts.
Related Issues (12)
- Choose project dir in config HOT 2
- Console not showing
- Closing Programs started with shortcuts HOT 1
- Migrate to Visual Studio Code
- Shortcuts don't work after once a command failed HOT 2
- Update overwrites config HOT 1
- The output could be abled to copy HOT 4
- Add a special variable for currently openned file HOT 5
- Menu Item Missing HOT 6
- Nothing happens when I press the key combination HOT 5
- Suggestion: Make dir optional HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brackets-command-line-shortcuts.