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

Fix zsh sourcing detection #42

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Fix zsh sourcing detection #42

merged 1 commit into from
Jan 8, 2025

Conversation

ColinNg
Copy link
Contributor

@ColinNg ColinNg commented Jan 1, 2025

In macOS with zsh, the startup help message is always shown.

Claude: The issue is in the zsh detection code. In zsh, $0 doesn't work the same way as bash for detecting if a script is sourced. Let's patch it to fix zsh sourcing detection.

…rk the same way as bash for detecting if a script is sourced. Let's patch it to fix zsh sourcing detection.
@doekman
Copy link
Collaborator

doekman commented Jan 8, 2025

I don't use zsh, so I can't test it. Anyways, if there are problems, we can take it from there...

@doekman doekman merged commit ffb366c into secretGeek:master Jan 8, 2025
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.

2 participants