question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After upgrading to version 3, starting Hyper (with ZSH) results in a '%' being printed to the console

See original GitHub issue
  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

After upgrading to version 3 of Hyper, a % is printed to the console when using oh-my-zsh. I don’t think that this is an issue with oh-my-zsh since it behaves normally when using the standard Terminal app. My friend also has this problem and I saw it live when he was updating to the newest version. It looks like this:

Image of Hyper Terminal with the % in the first line

Image of Hyper Terminal with the % in the first line

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
itsandreramoncommented, May 26, 2019

This should fix it: Adding unsetopt PROMPT_SP to .zshrc

Update: Closing because of duplicate

3reactions
DaneTheorycommented, May 11, 2019

It seems like this is a zsh specific issue. It has to do with partial line preservation and, theoretically, should output to either % or # depending on the user running the prompt (i.e. user = %, root = #). For some reason when the user’s shell is zsh on Hyper’s initial init, something is being run that creates a line in the prompt that does not end in a newline. I’ve been working on a PR that fixes this for Hyper, but haven’t found an elegant solution yet. In the interim, edit your ~/.zshrc file to include PROMPT_EOL_MARK="". Then, either restart Hyper or run source on your ~/.zshrc. This removes the % sign. However, it does not clear the newline the % held. Running clear or reset will set the prompt’s cursor back at the top.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After upgrading to version 3, starting Hyper (with ZSH) results ...
After upgrading to version 3, starting Hyper (with ZSH) results in a '%' being printed to the console #3658.
Read more >
Elegant Development Experience With Zsh and Hyper Terminal
Now, you just need to close and re-open your terminal and then you should be running zsh. Changing and Updating Zsh Config. Configuration...
Read more >
Setting up Windows Terminal, WSL and Oh-my-Zsh - Ivo's Blog!
It's an open source project and you can view its source code here. Start up the new shell.
Read more >
zsh: keep all command outputs on terminal screen - Super User
If it does, it usually honors the PAGER variable when doing so. The ls command, for example, doesn't use a pager at all....
Read more >
Hyper™
json . $ npm search hyper. Then edit ~/.config/Hyper/.hyper.js and add it to plugins
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found