-
Notifications
You must be signed in to change notification settings - Fork 70
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
[Feature Request] Some scripts are incompatible with the fish shell #33
Comments
Thank you for the generous offer and detailed write up! I'm going to spend some time this evening researching this to see if there's a shell agnostic way to achieve the functionality we want here, and come up with an implementation plan accordingly, I'll keep this issue updated on the progress. |
I think I have found a pretty neat solution. We could pipe the scripts to bash, this would mean you need to have bash installed to make the scripts work, but it doesn't have to be your default shell. Examples: echo 'pgrep -u $USER -x %s > /dev/null || (%s)' | bash - echo 'a longer script' | bash - |
Thats a super elegant solution! I was having a hard time finding a fix so thank you for the idea, I think that is the route we should go down to fix it. I'll be implementing this tonight |
Great! I'm glad I could help. Thanks again for the nice themes |
commit 02c706b fixes the startup issues, however fixing the network widget will be more time intensive. It's a mess of lua string formatting and single and double quotes clashing when trying to add |
Got a very important interview late next week so ill be putting this off until after then, apologies to anyone waiting. The startup is working now, just need to finish the network widget |
@WillPower3309 if you're still interested in fixing this, instead of piping commands to bash, you could set |
That's great to know, thanks! I'll see if I can get that fixed up |
Summary
As we have discovered in #31, some of the scripts are not working, if the default shell is fish. Unfortunately, this also affects the network widget and possibly other areas, that I haven't noticed yet. Especially, in the network widget, the differences between fish and bash are so big, that I doubt, it will be possible to write a version, that runs in both shells. Therefore my proposal would be, to have two versions of the script and use the
SHELL
environment variable, to choose the script corresponding to the users login shell.Example
An example of the big differences between bash and fish I mentioned earlier:
Points to discuss
SHELL
environment variable, or rather have a variable, in rc.lua, where the user can change the shell manually?Once we have come to a conclusion about the above points, I am willing to create a pull request, containing the network manager and everything else, I discover until then, in a version working with fish.
The text was updated successfully, but these errors were encountered: