Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt Issue
- X-seq: zsh-users 24023
- From: Zhao Li <zhao.li@xxxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Prompt Issue
- Date: Sat, 6 Jul 2019 05:52:33 -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=PRJm2wUZ3r+EpP+H19V0cBH1132Zyy94GUql0fdmj0g=; b=RchBn1BlTrmM2prd9Ly3S7MMzW82rijIY2W7SnJGbAjlW1uSRWMCwzopgLyIv6wjBH 8gxk8kyVP+h8+YS64s5XeQ1/kj8QF8UUJEtVdNe+hEwKakiRROyLpoC+aaLQfOm7qBG4 ayBqO4V2s/HKBZYwkiGC0tSFaeeIOY8+7yhWQ=
- In-reply-to: <CAN=4vMqkbvkUxsZ=gwpgfPtrGO1Gq4da_-gkZvaAWLBefukL+w@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> <CA+EEnTStdxY6hEX6hb+Gxz+O_u2TOuoM2zxH0NJ5XpqKrmGe5A@mail.gmail.com> <CAN=4vMqkbvkUxsZ=gwpgfPtrGO1Gq4da_-gkZvaAWLBefukL+w@mail.gmail.com>
Thanks Roman for all of your help. I'm just posting a note here to close
this thread out in case anyone else finds this in the future. The issue
ended up being how I was configuring zsh to understand the character widths
of the items in my prompt. The full detail can be found on this thread:
https://github.com/robbyrussell/oh-my-zsh/issues/7945
Thank you again Roman! I would have never been able to figure all of this
out because I didn't even know what to google for. 😅
On Fri, Jul 5, 2019 at 1:58 AM Roman Perepelitsa <
roman.perepelitsa@xxxxxxxxx> wrote:
> Let's have this discussion only in one place. I replied in
> https://github.com/robbyrussell/oh-my-zsh/issues/7945.
>
> Roman.
>
> On Fri, Jul 5, 2019 at 1:05 PM Zhao Li <zhao.li@xxxxxxxxxxxxxxxxx> wrote:
>
>> 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