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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 fb48dcf4 for ; Fri, 5 Jul 2019 11:59:12 +0000 (UTC) Received: (qmail 8692 invoked by alias); 5 Jul 2019 11:59:05 -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: 24008 Received: (qmail 8783 invoked by uid 1010); 5 Jul 2019 11:59:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f42.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.166.42):SA:0(-2.0/5.0):. Processed in 1.61676 secs); 05 Jul 2019 11:59:05 -0000 X-Envelope-From: roman.perepelitsa@gmail.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.166.42 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uFvCGLlqBQD3VH1GoDSHOu6L31JAhmN6jFSUvrhhLBg=; b=N2g9Eyoj0n4tKqWmmMyGLYhj+/G4EBPYvnII4WTjefy3JcF6aNnFK7ZI9MCLy2KqyH Eckoke6Z3sKfRTdnmQyVusoXnypCG24CpNmikJLo7fQ4nI5XL6H3QU/+FUph5cZibHz/ hLE5yjt6LPUpDLQ135SdOSD7vHc7Qpw5IEA4r3lYGYkjXSDDxL0vMymDDoRwY79smMGq bo/ShRwRNm44abhhXt7JJOms4Rh7O7MPeYEAvwyxcb5BoSc4kRYB5lZ0Lg1wo+JmnJpn AGx9mns64BcNxJBJkKhbbnSVztn6OSzU4vMsaZHmVVH27OE2oIayukXmL7coTbj3JklM j0uw== 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=uFvCGLlqBQD3VH1GoDSHOu6L31JAhmN6jFSUvrhhLBg=; b=EfSu+JFUP6SB0aCFgIi35cjOKrPcBguIa2IPYW88s5RmbPiLWnrPcD2A2kJWJVHMJ6 btfdG2XVXhbX2YnNat54wPIbHtxIn0YyGf0o4cEMe4e3U/+J78VFomktz9LrZEar35DN 6owPIYDsRbLNbFUloNV+u9qSUVlBQ9tLmGZ/Ia3VhwSUaMS+tJ7VYGX4myR4qQg/fx1n YCnukLZnhxQWf/AUsVibyah5GC0GCd+Qvn/dwyYKuVPs4krAEWGQV+LNf7JJGsX176r6 Xp/wAdFPUj1WLkh6fqNgINFDyxZOgNf51qFVw9RSRM5pxGQHYabvQSJBIyGmjAHckjeS d4Xg== X-Gm-Message-State: APjAAAXwwoRbOt4DTwTvruxS9n5C5QP337Vd/0ZmBN3lJpKXwAHuahAV bF5Fi8Gm0W3m2HXFR+UPk+RsaTLR35mJX6diqNp+d9nSLNY= X-Google-Smtp-Source: APXvYqw7fHhDtj3Z0jU2avEsA2DdwKQNqNWi5bJxJnGSPpf6A+pX108/xjiLpt3MYmscpRvkzsIKIIa6tJdWBvRXcd0= X-Received: by 2002:a02:b914:: with SMTP id v20mr3936371jan.83.1562327910482; Fri, 05 Jul 2019 04:58:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Fri, 5 Jul 2019 13:58:19 +0200 Message-ID: Subject: Re: Prompt Issue To: Zhao Li Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000208c29058cedd0f6" --000000000000208c29058cedd0f6 Content-Type: text/plain; charset="UTF-8" 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 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. >> >>> --000000000000208c29058cedd0f6--