Does anyone else have issues with a customized prompt with oh-my-zsh? My prompt consists of two lines, and for some reason the second line disappears after a few seconds. It only happens a finite number of times, though:
I launched the shell, and the second line disappeared. I pressed Enter and it happened again. I pressed enter another time, and it did not disappear. Neither did it the next few times. Sometimes, it happens a few more times before the second line stays visible. Sometimes, the issue doesn't occur at all.
But what's with these square brackets showing on the sides? There has to be something wrong with my prompt, no? This is how it's defined:
However, I haven't touched my zsh settings in months. The only thing that changed recently is that I updated oh-my-zsh, so this is likely the cause of this issue. I was wondering whether anyone else here is affected by this.
I launched the shell, and the second line disappeared. I pressed Enter and it happened again. I pressed enter another time, and it did not disappear. Neither did it the next few times. Sometimes, it happens a few more times before the second line stays visible. Sometimes, the issue doesn't occur at all.
But what's with these square brackets showing on the sides? There has to be something wrong with my prompt, no? This is how it's defined:
Code:
PROMPT='%{$fg[blue]%}%n%{$reset_color%} in %{$fg[blue]%}%~%b%{$reset_color%}$(git_time_since_commit)$(check_git_prompt_info)
> '
RPROMPT='%(?.. %{$fg[red]%}%?%{$reset_color%} - )%T'
However, I haven't touched my zsh settings in months. The only thing that changed recently is that I updated oh-my-zsh, so this is likely the cause of this issue. I was wondering whether anyone else here is affected by this.