Hello,
When opening the terminal I get an empty line at the top of my terminal. I know that I configured the prompt to have a new line between each command. But would it possible not to have the empty line when opening the terminal ?
Thank you very much in advance.
I like to keep a new line after I run my commands not before.
Somehow that new line is populated before promote. So when I do a clear, it always is an empty line at top of my screen. I want to remove it badly! lol
Try Ctrl+L instead of clear 馃槈
@maximbaz I tried ctrl+k, ctrl+L and clear but none of them works. All of them clean my console but also leave an empty line at top of my console. I can "fix" by putting SPACESHIP_PROMPT_ADD_NEWLINE=false in my .zshrc but I will lose that beautify empty line. There must be something like post hook to add a newline after each command. I haven't figured it out yet.
Ah, ok. I fixed this a while ago in my fork so I didn't remember exactly how it works in upstream. My fork is quite diverged now, if you want to investigate how to backport the fix, here it is: https://github.com/maximbaz/spaceship-prompt/commit/815b68c70f21c5512765c87985897b98b8ed232c
@maximbaz Thanks a lot. After I use your repo and problem solved. 馃憤 I also noticed that you are using zsh-async to load your theme. that is smart!
Nice to hear this @duqcyxwd, and yes, zsh-async is used there 馃槈 FYI not all the sections are async yet, I migrated only those that I use myself (and merged a few PRs of other people migrating sections they use)
Closing this since the issue seems to be resolved.
P.S: Feel free to open a related PR.
Isn't the problem being fixed?
I installed it today, however, there's still an empty line at the top.
I tried setting SPACESHIP_PROMPT_ADD_NEWLINE=false to solve it, but there's no newline after each command just like @duqcyxwd described.