Skip to content

Conversation

@Maple38
Copy link

@Maple38 Maple38 commented Nov 25, 2025

New config variable: PURE_SKIP_INITIAL_NEWLINE

If set to 1, this variable prevents the newline from being printed for the first time the prompt is loaded. This looks much cleaner in my opinion, so I thought I'd make it an option. It defaults to 0, so it'll have no impact on users who don't explicitly set it.

image

Also updated the readme to include the new variable :)

If set to 1, this variable prevents the newline from being printed for
the first time the prompt is loaded. Looks cleaner in my opinion, so I
thought I'd make it an option. Also updated the readme.
@mafredri
Copy link
Collaborator

mafredri commented Nov 26, 2025

Thanks for the contribution.

Personally I'm not a huge fan of this since there are edge cases we can't guard against, for example:

~echo -n hi; zsh
hi~

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