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
- macOS 13.6 High Sierra:
- Hyper ver. 3.0.2:
- **.hyper.js https://gist.github.com/itsandreramon/ec5e313f0d01a95c6ac21235e011ca8f**:
- The issue is reproducible when using oh-my-zsh:
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:
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should fix it: Adding unsetopt PROMPT_SP to .zshrc
Update: Closing because of duplicate
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 iszsh
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 includePROMPT_EOL_MARK=""
. Then, either restart Hyper or runsource
on your~/.zshrc
. This removes the % sign. However, it does not clear the newline the % held. Runningclear
orreset
will set the prompt’s cursor back at the top.