Skip to content
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

fish shell support #425

Merged
merged 3 commits into from
Dec 24, 2024
Merged

fish shell support #425

merged 3 commits into from
Dec 24, 2024

Conversation

mightyguava
Copy link
Collaborator

Adds native support for fish shell.

Since fish isn't POSIX compliant, all scripts were translated to fish syntax (mostly by ChatGPT). There's now a new bin/activate-hermit.fish script that needs to be added to hermit repos to enable fish support, which hermit will add only if you run hermit init again.

I'm new to fish, so there might be some errors in the scripts. But both activate and deactivate seem to work fine in all the repos I tested in.

Closes #417.

@@ -1,4 +1,6 @@
#!/bin/bash
#
# THIS FILE IS GENERATED; DO NOT MODIFY
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes from running hermit init. Let me know if I should remove

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope this is fine!

Copy link
Collaborator

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome!

Can you also add fish to this table to add Fish support to the integration tests?

@@ -1,4 +1,6 @@
#!/bin/bash
#
# THIS FILE IS GENERATED; DO NOT MODIFY
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope this is fine!

bin/hermit Show resolved Hide resolved
@alecthomas
Copy link
Collaborator

This is awesome!

Can you also add fish to this table to add Fish support to the integration tests?

Actually this is going to be a bit more work than that, let's just get it in as-is.

@alecthomas alecthomas merged commit a9a3dcf into cashapp:master Dec 24, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Fish shell, or don't try to install into Fish with ZSH syntax
2 participants