Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt Issue
- X-seq: zsh-users 24007
- From: Zhao Li <zhao.li@xxxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Prompt Issue
- Date: Fri, 5 Jul 2019 01:05:41 -1000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startingspark.com; s=googless; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9RrGpmw6J/cRa8BNZ0Ylyh/dvZ3oUp0YLd4VF1MZ404=; b=H8IZlqBwwNTie3cfqeBWxVxz1OPssBlYU6zib3RupQh2+oHeDN+3MFNEhSAAIN6DjO 6o6MpthCz9whaw6/O/FIqizR/+dHbF76wE7AX5b0c7awlTH9s6ryQCTQde0aZ1C7PwQj EqhNBqRW9b4SjJUyY3mm7bj+a0SwRdGn7Y+20=
- In-reply-to: <CAN=4vMr8_6H9175VgE9bOqNrH0KQwpbiaOkM-QYwJxnj_=4eSQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+EEnTTv1TuH6COP92UradjrfP9NuD4-AEQwOQZ7KFAnO8eoyA@mail.gmail.com> <CAN=4vMr8_6H9175VgE9bOqNrH0KQwpbiaOkM-QYwJxnj_=4eSQ@mail.gmail.com>
wow thank you so much for taking the time to write your post. Your example
code to fix the problem along with explanation helps tremendously. I can
understand why %{...%} is helpful here
<https://github.com/robbyrussell/oh-my-zsh/issues/2314#issuecomment-32155974>
(
https://github.com/robbyrussell/oh-my-zsh/issues/2314#issuecomment-32155974),
but not where I was using it in my prompt.
Thank you also for pointing me to gitstatus and your detailed example code
for that as well.
I think I'm finally at a good place with my prompt and using zsh with
oh-my-zsh.
My last remaining issue is with hyper.js not properly handling emoji's and
causing the prompt to be off by one character
<https://github.com/zeit/hyper/issues/3516> (
https://github.com/zeit/hyper/issues/3516). Unless you know of some easy
fix for that as well, I'm going to just wait for hyper.js to fix that issue
ticket.
Thanks again for your time and effort.
On Thu, Jul 4, 2019 at 9:06 PM Roman Perepelitsa <
roman.perepelitsa@xxxxxxxxx> wrote:
> This is the problem:
>
> PROMPT+='%{$(git_info)%}'
>
> Fix:
>
> PROMPT+='$(git_info)'
>
> I've provided more details in
> https://github.com/robbyrussell/oh-my-zsh/issues/7945.
>
> Roman.
>
>>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author