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
Add option to print prompt in non-bold font #426
Comments
bold disabled for section contents like |
I would love to have such an option!
IMHO: for all options where you can set the color. |
Moving the discussion from #519: I would like to make this feature to be happen because of personal interest, but I want to align with the current route of the project. My proposed approach would have a new standard parameter ( But as @salmanulfarzy mentioned this would be overkill. A new standard parameter ( This would be a more subtle change with less risk on the current codebase too. I looked at the code and this would be easy to implement. What your thoughts on this? (Mainly addressing the question to @salmanulfarzy) If we are in a consensus I would follow-up with a WIP pull-request to eliminate the obstacles along the implementation. |
Hey @ortonomy, Any thoughts Salmanul? |
While you are waiting for the new option to be implemented, you can add the following snippet at the end of () {
local z=$'\0'
PROMPT='${${${$(spaceship_prompt)//\%\%/'$z'}//\%B}//'$z'/%%}'
} This performs 3 replace-all operations on
Enjoy your spaceship prompt! |
thanks @romkatv -- A pity I have to disable it globally. |
Thanks @romkatv nice workaround. |
@romkatv This does not work for the right prompt here, unfortunately. |
@dhasilva You can add the same line for |
@romkatv Thank you, friend. It works! () {
local z=$'\0'
PROMPT='${${${$(spaceship_prompt)//\%\%/'$z'}//\%B}//'$z'/%%}'
RPROMPT='${${${$(spaceship_rprompt)//\%\%/'$z'}//\%B}//'$z'/%%}'
} |
FYI, there are two new issues with the above workaround starting in v4+:
|
It doesn't work in spaceship-prompt v4+. See spaceship-prompt/spaceship-prompt#426
As it was requested in on of the oldest feature requests, some may prefer to use the prompt with non-bold fonts. resolve spaceship-prompt#426
Issue
I'd love for Spaceship to have option to not set
bold
as the default font style for the prompt. What do people think about this? If others are interested in this as well, I'd start prototyping a PR.Screenshot
iTerm with bold fonts globally disabled:
Hyper with the Spaceship default:
Environment
Spaceship version:
3.3.0
Zsh version: zsh 5.3 (x86_64-apple-darwin17.0)
Zsh framework: oh-my-zsh
Zsh plugin manager: None
Terminal emulator: Hyper/iTerm
Operating system: macOS
The text was updated successfully, but these errors were encountered: