From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 101cfb70 for ; Sat, 6 Jul 2019 15:53:30 +0000 (UTC) Received: (qmail 7963 invoked by alias); 6 Jul 2019 15:53:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24023 Received: (qmail 27484 invoked by uid 1010); 6 Jul 2019 15:53:20 -0000 X-Qmail-Scanner-Diagnostics: from mail-pl1-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25496. spamassassin: 3.4.2. Clear:RC:0(209.85.214.178):SA:0(-2.0/5.0):. Processed in 2.031951 secs); 06 Jul 2019 15:53:20 -0000 X-Envelope-From: zhao.li@startingspark.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.214.178 as permitted sender) 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= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PRJm2wUZ3r+EpP+H19V0cBH1132Zyy94GUql0fdmj0g=; b=GVVFmT0S3Ivgr7shAWt8n1chu1dAPoPi3CU9KeHoZJkpin4RJs6YZwOf1INIF+ucIs FoWgzHSLqU+84CPsJQRIcg9mmImOFGDR8Wsx3kx0RclB393pPM/LBGQPUMzVjtrBiCvj Ee6RVVryViqwvBC+407hPpgh99Fz8ERP1rdHwtyJ5/OlaJP6JFtzmfnXmCVhA9364z4N xd2ZW4mWTefge6VRZHfEmmR0GV0b5FAq3LS+wx5PTiLcXfSbAyK6gsMSGNXGMz7L26O7 jrXL7Slkgpyk3n76EWRifFub/VkLG3wm3hwKo/hqHy7pf0j+enWojtBvDpmm3XlazBxa uERQ== X-Gm-Message-State: APjAAAVGduMmvZm66POaSJcH2ytW7rN/xW8Y8XKmVWHIeVoPiejSDi8f DUSM1/Ds2/UCVNap4MwFQ3lHAYeP39QxJa+9YAavOo144cQeFA== X-Google-Smtp-Source: APXvYqxJdBJ9gKlNCZfAJZ9Onoo8vPjE62ICnjj68+ulRQy3l83Jv6tREhOu7QFJTcDPH3Qcy2z8DhIGII0SoxGbyFo= X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr11971421plb.315.1562428364379; Sat, 06 Jul 2019 08:52:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zhao Li Date: Sat, 6 Jul 2019 05:52:33 -1000 Message-ID: Subject: Re: Prompt Issue To: Roman Perepelitsa Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000a56b73058d053330" --000000000000a56b73058d053330 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. =F0=9F=98=85 On Fri, Jul 5, 2019 at 1:58 AM Roman Perepelitsa < roman.perepelitsa@gmail.com> 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 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 tremendousl= y. >> I can understand why %{...%} is helpful here >> >> ( >> https://github.com/robbyrussell/oh-my-zsh/issues/2314#issuecomment-32155= 974), >> 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). Unless you know of some easy >> fix for that as well, I'm going to just wait for hyper.js to fix that is= sue >> ticket. >> >> Thanks again for your time and effort. >> >> On Thu, Jul 4, 2019 at 9:06 PM Roman Perepelitsa < >> roman.perepelitsa@gmail.com> wrote: >> >>> This is the problem: >>> >>> PROMPT+=3D'%{$(git_info)%}' >>> >>> Fix: >>> >>> PROMPT+=3D'$(git_info)' >>> >>> I've provided more details in >>> https://github.com/robbyrussell/oh-my-zsh/issues/7945. >>> >>> Roman. >>> >>>> --000000000000a56b73058d053330--