-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Using bash
from HomeBrew
#307
Comments
Honestly, I can't come up with a reason why not to switch to |
Addedd a separate option in Preferences, try beta |
@melonamin Doesn't work for me for some reason. I.e. the shell used is still system's bash, not the one from HomeBrew despite I have it set in system preferences. |
The latest beta build works for me. @leshik can you post a screenshot of the dropdown menu using the following plugin? echo 'foo'
echo '---'
echo $PATH
echo $(which bash) |
@xilopaint The problem is, I can't even run any script because it fails earlier failing to load |
What error message do you get? |
My bet is you're based on the wrong assumption that SwiftBar is still running the system bash. The message suggests the script expects a Terminal (maybe calling |
@xilopaint There are 2 errors here, and I'm talking about the first one, i.e.
Meanwhile:
|
@melonamin no, not working - same issue |
Can you do a quick test for me please? Run a plugin like this(I'm on mobile, can't test it):
And show me the output please. |
@melonamin as I described in one of my previous comments, I can't run this script as a plugin as the actual error happens prior to any plugin being executed, this my only option was to edit the HomeBrew completion file that causes the error, and insert your code there before the command that fails. Anyway, the results are interesting: |
Ok, plz help me reproduce your setup on my end, I need to:
Correct? What should I do at step 3 and what is missing? |
@melonamin |
Ok, I replicated the environment and combination of this plugin and this build seems to be working correctly on my end.
|
@melonamin I don't know how else I could help to troubleshoot this. I'm on Intel Mac if it matters (I see yours is ARM), though not sure if it makes any difference. |
@melonamin while experimenting I somehow screwed the settings, and now I can't access SwiftBar UI at all (though I can see it running in processes). I tried to delete settings, plugins, and restart – but it didn't help. How can I reset SwiftBar to the default state? |
@melonamin something weird is happening now with this build. The test plugin only works when the shell is set to |
Is there any reason not to use
/usr/bin/env bash
instead of/bin/bash
?macOS uses an old version of
bash3
, and I usebash5
from HomeBrew. Some tools have completions that usecomplete -o nosort -o nospace -o default -F ...
andnosort
option doesn't work inbash3
, resulting in plugins failure.The text was updated successfully, but these errors were encountered: