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 db8a3157 for ; Fri, 5 Jul 2019 11:06:39 +0000 (UTC) Received: (qmail 24658 invoked by alias); 5 Jul 2019 11:06:29 -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: 24007 Received: (qmail 9156 invoked by uid 1010); 5 Jul 2019 11:06:29 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg1-f171.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.215.171):SA:0(-2.0/5.0):. Processed in 3.381874 secs); 05 Jul 2019 11:06:29 -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.215.171 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=9RrGpmw6J/cRa8BNZ0Ylyh/dvZ3oUp0YLd4VF1MZ404=; b=H8IZlqBwwNTie3cfqeBWxVxz1OPssBlYU6zib3RupQh2+oHeDN+3MFNEhSAAIN6DjO 6o6MpthCz9whaw6/O/FIqizR/+dHbF76wE7AX5b0c7awlTH9s6ryQCTQde0aZ1C7PwQj EqhNBqRW9b4SjJUyY3mm7bj+a0SwRdGn7Y+20= 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=9RrGpmw6J/cRa8BNZ0Ylyh/dvZ3oUp0YLd4VF1MZ404=; b=otiBDd7puWyfQRILPhVSpBmFEykZuIXfFRwan24JB5Z+f9aRxHfBW0eAEGj2oOMX70 oE3whfGHJPWH+5s2BKo2ICVMV/Yif5hvmWoHWv7hNjysz1WC9rP4/NHpXsIxUXwv3GgB sPF0+v6a2pzEU1s5Td6ipO/5D8ZEHfMuHPIPMXHpK7roPzd2Aay9rjoik8VXwAZyIM70 fRp2/FSHn6ORVLdv/Sn5SOb9GURPG0BXobYcRi3homhGY9SIS65klhHJnNUQlyKx3MpA FvVmBq3pNL4sf1EGNM3T/3GeholSebJc3U1l/xFc/HHW5Ms1BuscEsfLKh6Xw9sgvjFx MVdQ== X-Gm-Message-State: APjAAAUFtdcBcMUETimWT1A4eEbOAuYTMLjYFns/5PLfVQYvIMuTA9Yj WMfoMm5atGi0tCuBKO2YseHqgqLNxrwgYfB/P5cFdw== X-Google-Smtp-Source: APXvYqzStlKPV9CPvxKi6k8cBGg41lOR3j/Sr/RZ6cXMMQIyQuy6JYSwTCuHlj0E5721mYszt57eQxsaUgRXLRcZKLE= X-Received: by 2002:a17:90a:e397:: with SMTP id b23mr4748338pjz.140.1562324752779; Fri, 05 Jul 2019 04:05:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zhao Li Date: Fri, 5 Jul 2019 01:05:41 -1000 Message-ID: Subject: Re: Prompt Issue To: Roman Perepelitsa Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000e9e0c3058ced13e7" --000000000000e9e0c3058ced13e7 Content-Type: text/plain; charset="UTF-8" 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), 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 issue 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+='%{$(git_info)%}' > > Fix: > > PROMPT+='$(git_info)' > > I've provided more details in > https://github.com/robbyrussell/oh-my-zsh/issues/7945. > > Roman. > >> --000000000000e9e0c3058ced13e7--