Skip to content

Conversation

@MPLew-is
Copy link
Contributor

This is a continuation of #469 by @geksiong, since I haven't heard from the original author in a few years (geksiong#2). These changes have been confirmed to work on both zsh and bash, but not fish.

geksiong and others added 7 commits February 20, 2023 16:46
- Use added `NewLine` variable for zsh-specific newline
- `Time12a` variant added for zsh
Without quotes, the test will succeed even when the variable is not defined.
The use of zsh `&!` syntax was causing bash to die in script parsing, even though this never gets executed. This adds `true` as a dummy command to get past parsing and allow both bash and zsh to execute the script.
This function was renamed upstream, but the rename was clobbered during rebase.
`==` is only (semi-)portable when used with `[[`.
@MPLew-is MPLew-is mentioned this pull request Feb 21, 2023
@guenhter
Copy link
Collaborator

Could you rebase to the latest master and quickly verify that it still works. After that, I'll merge it.

@MPLew-is
Copy link
Contributor Author

It is already rebased on top of the latest master (see 7fb605e, with parent cada5cb), and I've confirmed it works on the stock zsh and bash versions installed with macOS Ventura.

@guenhter guenhter merged commit 08a4af2 into magicmonty:master Feb 21, 2023
@guenhter
Copy link
Collaborator

Sorry. Overlooked that. Thx for this contribution.

@charlesverge
Copy link

Using zsh I don't get the prompt, changing the shell to bash the prompt appears. I have a fresh install of Ventura

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.

4 participants