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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 e9e128b0 for ; Sun, 8 Sep 2019 00:34:15 +0000 (UTC) Received: (qmail 4367 invoked by alias); 8 Sep 2019 00:34:04 -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: 24239 Received: (qmail 29896 invoked by uid 1010); 8 Sep 2019 00:34:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf1-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25559. spamassassin: 3.4.2. Clear:RC:0(209.85.167.49):SA:0(-1.9/5.0):. Processed in 2.269735 secs); 08 Sep 2019 00:34:04 -0000 X-Envelope-From: schaefer@brasslantern.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.167.49 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jtopAFRbedMuqj1Ofbb7xI+r79af9N7btp/oB/nKvwE=; b=fIIAUsyBsn0bPG50PCMh7W3YXwaQIGYOQ7R0dmRA+T9H1I01O6+eEAfJ4TNc4I4wZf KX3WesKzDj3ydNmyLxCCy8k2N/cD808eCMprw2CIbXq4mGGYKMXs+2DD0tY05lRyJ0lq W+kIfBM460hXvwMoo4SRyPdI3BEEpZvuCF4NgXLFw2uxTx7+nwkgaXXcrEWqog9iOibG fguEWvci/tWuRM+TDu4IOizbILqwTpCa0Mc5W2T29Bwp57t8XG8O3u3Ita/kQupvuSUd BSsnCSMM9ArZ6taPhCW82NWwCiuqfjgKBTSAO+Y26BXdyTtOkx0v5wTnQ1msN8F+qUpS 3aNg== 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=jtopAFRbedMuqj1Ofbb7xI+r79af9N7btp/oB/nKvwE=; b=WcihFuo80yi/xf2mU8Eq/z44v8rpXUifrXMy8ST7fVkIGsQoSOW70GVOti1cgVmMj4 b0MKiGhl5CWuhJEMZxFpPl3IwusBAKGZH4+svGxE/JVxMY2wW6NA27lL7Y9BTg1+dD4u J7npv5zqONDrzl3TGyV6yX2UrUK4YBzZJ+HwKVO7EbRscsrOVW26Ln8OoEqqF/d8/3Y0 v6WQrSCyBDc+Vh9Opm+z0stLC9Npt2lr639IYWut/+QVenZBGQ4H7UgqNzVRSV932rtj 7hERlwJ+yDKm0lXJqL6zdd58iLApAb18vRzWdrYkzV1/rWG/xbecWPQ6pWqfuSGH2ZIy v4+A== X-Gm-Message-State: APjAAAXBshW9TazeSfBUXgaJfJqZecvvSVbmL/u+3dOkGv62IOEF3XBp U1xTsnhuACgEt6ekxOzrjmuIqzduIE7bPUxBbTIlCSTtmWQ= X-Google-Smtp-Source: APXvYqxWuBSjCrISvAvCWNRRzNKs7x0AGdWalWK9e32HMvMB6HzrM5odOH7MNK3YtfCMfF6szhFTmGLQFQazPg9PJHE= X-Received: by 2002:ac2:5a4c:: with SMTP id r12mr11148852lfn.52.1567902807239; Sat, 07 Sep 2019 17:33:27 -0700 (PDT) MIME-Version: 1.0 References: <87woejhnct.fsf@ft.bewatermyfriend.org> In-Reply-To: <87woejhnct.fsf@ft.bewatermyfriend.org> From: Bart Schaefer Date: Sat, 7 Sep 2019 17:33:15 -0700 Message-ID: Subject: Re: Is it worthwhile to use oh-my-zsh? To: Frank Terbeck Cc: Roman Perepelitsa , Peng Yu , zsh-users Content-Type: text/plain; charset="UTF-8" On Sat, Sep 7, 2019 at 1:19 PM Frank Terbeck wrote: > > Roman Perepelitsa wrote: > > Note that vcs_info is likely to make your prompt noticeably sluggish. > > Depends on configuration. The defaults avoid most features that are > particularly expensive. I've been using the following lately ... note that I am pathologically allergic to "setopt prompt_subst": ### autoload -Uz add-zsh-hook autoload -Uz vcs_info vcs-info-v() { vcs_info; RPS1=${vcs_info_msg_0_% } } add-zsh-hook precmd vcs-info-v zstyle ':vcs_info:*' enable git cvs zstyle ':vcs_info:*' actionformats \ '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' zstyle ':vcs_info:*' formats \ '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' # Add up/down arrows after branch name, if there are changes to pull/to push # Credit Danial Shahaf, edited to remove hardwired Unicode arrows zstyle ':vcs_info:git+post-backend:*' hooks git-post-backend-updown +vi-git-post-backend-updown() { git rev-parse @{upstream} >/dev/null 2>&1 || return local -a x; x=( $(git rev-list --left-right --count HEAD...@{upstream} ) ) hook_com[branch]+="%f" # end coloring # Edit if terminal supports Unicode arrows (( x[2] )) && hook_com[branch]+='<' # $'\u2193' (( x[1] )) && hook_com[branch]+='>' # $'\u2191' return 0 } PS1='%# ' autoload promptinit promptinit prompt bart green white yellow git-chpwd () { prompt_bart_ps1 local remote=$(git config --get remote.origin.url) # Hack PS1 from bart theme to insert git origin in place of current directory # This tells me which repository the "master" branch belongs to PS1=${PS1:s/%8~/${remote:-%8~}} } add-zsh-hook chpwd git-chpwd ### Regarding oh-my-zsh, if I were going to start using a plugin system, I'd probably use the one Sebastian has been working on instead.