-
Notifications
You must be signed in to change notification settings - Fork 33
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
Setting path doesn't work. #2
Comments
In your case, if you put the following in your {
"default_exec_args": {
"path": "/usr/local/bin:$PATH"
},
"cmd_config": [
// any additional configuration you want for specific commands
]
} |
Thank you for the quick response and patch. I just tried it (restarted sublime) but it's still running under the same path and not the one i specified..... |
Can you make sure the plugin is updated and the invalid |
I have the latest version and this is what I have: {
"default_exec_args": {
"path": "/usr/local/bin:$PATH"
},
"cmd_config": [],
"input_widget": {
"syntax": "Packages/ShellScript/Shell-Unix-Generic.tmLanguage"
}
} The only error I get in that console is |
Pasting that exact text into my settings file and running Pasting this into the sublime console will tell you if Sublime is picking up your settings your sublime.load_settings("Shell Turtlestein.sublime-settings").get('default_exec_args') |
Also, are you using the package manager? I'm not sure if that thing automatically pushes out new commits from github or not... |
So It looks like it is added it, but something is wrong as I get:
I had |
You must be on a Mac. As you've discovered, your I got everything working by setting my path in |
Yeep. I know, I got around it by including the path before, but that was for just one off commands. If we add a config option for a command that gets append to the front of everything like: `"cmd_append": "source ~/.profile" so when you run a command it's actually doing: It will work great and be even more customizable: |
Something like this works great: def exec_cmd(window, cwd, cmd):
if settings().get('cmd_append'):
cmd = settings().get('cmd_append') + " && " + cmd
args = exec_args(cmd)
args.update({'cmd': cmd, 'shell': True, 'working_dir': cwd})
window.run_command("exec", args) |
Hi,
So I have:
but it will not run commands. If I make
cmd_config
an empty array it will run commands just fine.I have this for my coffee-script build and it works just fine:
p.s. thank you for such a great plugin.
The text was updated successfully, but these errors were encountered: