-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
Handling PATH #36
Comments
in the plugin is a workaround for now. |
Perhaps you could add that to the README? It's a cool little trick. |
Do you think this requires a change in BitBar, or is adding the path 'manually' a good solution? |
How do you export PATH if your script isn't using bash? |
@uri depends on what language you're using. A more portable solution might be to have the app pull PATH from a login shell session on reset - this is the strategy used in neovim.app (see https://github.com/rogual/neovim-dot-app/blob/master/src/app.mm) |
+1 to @alaroldai |
The trouble is, which login shell should it pull from? People use different ones. And which file? It seems more elegant to let the plugin developer decide what to pull in? |
Well, it is possible to check which shell the user has set as their default shell. On Mac OS, you can do this with: |
Are we happy that this issue is resolved in userland? |
Yea |
PATH
for the app is limited. Most commands that I want to run, likedocker
, are not in PATH for the app. This makes it very limited regarding what I can write in the plugins.Would like to know what people are doing for this. I would also like to make a recommendation that PATH from login shell is somehow incorporated, as the premise is running custom scripts that work in our terminals.
The text was updated successfully, but these errors were encountered: