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 ecff445a for ; Tue, 23 Apr 2019 10:40:42 +0000 (UTC) Received: (qmail 8596 invoked by alias); 23 Apr 2019 10:40:29 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44245 Received: (qmail 5332 invoked by uid 1010); 23 Apr 2019 10:40:29 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25426. spamassassin: 3.4.2. Clear:RC:0(209.85.166.53):SA:0(-2.2/5.0):. Processed in 1.519111 secs); 23 Apr 2019 10:40:29 -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.53 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=MdvBCr0ihICofLDp7ZeJsV2bjAfD8Limi7whtL52yws=; b=kkQ1HG7xOZAhZooVg/eWMT35V8fMsVXnwyAZHqzMnh5wu2AUD4MlcQEEQ/cWaoRjoA UNlQDvFQvhEwalK03yI0ZPchhttwk4O32aczVHrkWvePuHZsq+LHArQ1lLnKpeOXbGiP NWxX66BQBFhOFVTzhPFwTjaNPLSydO068lucUdzkrv6SRDmSw9SbhL6qSbeNDcDfitSL kLgxFFfbnchgejavuD0wgbkgeOm0NynYGnUc4LcmD/GhrC8QwRBcvbq2hMWqZdf7XT6S ixD2Nt1dVQNgV5LUHlKif+9lQHpXSJ8yUU/SZ8MtHdZuf+mMN9aLEZm9CI0Wy8QCPNa5 81VA== 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=MdvBCr0ihICofLDp7ZeJsV2bjAfD8Limi7whtL52yws=; b=s1RJlMYCs3X9A8L1dFjng+asw1EuXFiLhJe5LUi4GNsVNMJ0hR2/45z70iw9MborfP QVCZJn0oEad96X6+DWw/tjnkzoRQqCPNO69FDoOqZnPLQqlMXucmfzT5rt+FSX/3Fqwm ebsptow9BzI0t5Wq3Q+yKr9toIqGjFpXBCv8RV7PFnFzQPT9MwS4fenVTd4j7Zp4G2ni 4289jySCH7KjjN9p+nJ+4Nl/czPHKTnmrcnGjZI9KEcz4u19U+WMhRhtnvV+hu+eMU9c LKIp2vOIckONH75NrAT/n2UUyoyGYJXHPU/aJnsK24De10zla+ZKgtLMZNcp60vE1io7 qerg== X-Gm-Message-State: APjAAAWPPMgeIVG1N3dSSTumtVMaqisFx9/qGAP6mCAAwgF9XG52HZ74 W75nSlmP4VzW8dee1OgNI/vAuvugzCL+JQH4BvJC/EUn X-Google-Smtp-Source: APXvYqyIh6NtijaxkDUqU5BIbESoIUNwuebCK5Qdoyk4iFGmq9u7Fah579tpVf3XgUVczoBOqzhxAWaVZGGcxCYif4Q= X-Received: by 2002:a6b:d119:: with SMTP id l25mr16203228iob.278.1556015994141; Tue, 23 Apr 2019 03:39:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Tue, 23 Apr 2019 12:39:43 +0200 Message-ID: Subject: Re: ZSH vcs_info are not updated if alias is used To: Goetz Epperlein Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="00000000000098817605873034d9" --00000000000098817605873034d9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2019 at 11:03 AM Roman Perepelitsa roman.perepelitsa@gmail.com wrote: The problem is here: > https://github.com/lony/dotFiles/blob/f5f1691499e7a95a3a2e4f1e0970f0ae46f= 4b40e/ansible/roles/dotfiles/src/bash_zsh/.zsh_oh-my-zsh/themes/lony.zsh-th= eme#L69 > . > I should=E2=80=99ve mentioned how you can fix it. The simplest fix is to ad= d your git aliases to the linked code. This, however, won=E2=80=99t fix all corner= cases. It might be possible to expand aliases there but it still won=E2=80=99t for functions and scripts that call git. An alternative solution is to call vcs_info from precmd hook on every prompt. This will be correct but slow. To solve the performance problem you can replace vcs_info with gitstatus , which is over 10x faster. There is an example you can follow. Powerlevel10k provides a turnkey solution. It=E2=80=99s already integrated with gitstatus, it=E2=80=99s very= fast, and very flexible. You can configure Powerlevel10k to look like your current scheme, if you like. Roman. --00000000000098817605873034d9--