From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 1905B1F934 for ; Wed, 7 Apr 2021 14:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348376AbhDGOXa (ORCPT ); Wed, 7 Apr 2021 10:23:30 -0400 Received: from w4.tutanota.de ([81.3.6.165]:41778 "EHLO w4.tutanota.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348250AbhDGOX3 (ORCPT ); Wed, 7 Apr 2021 10:23:29 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id 942FE1060E09 for ; Wed, 7 Apr 2021 14:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1617805396; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=FyJSbyhQVlfWXyydijc/pVt3oZu4UwaVTzj8oUiAndQ=; b=J5ouUhvHyoQj1dbT9z3BBfc8JTM+anl0YAWvlkH5o9f1K3jI7Byw8tqgrs3pOFYo 6YudXAKKgF/KSLuyJPq2WfIyM1n2PVbR7arJF7CTt68GVRCvIUymutToJklz6kKV1Mo dInxR9cvuv3kZ89qxpWgTiIqYECCclQ3Kp0Jzfmgk/tozCTPS8sz0p+iTUHwWXndZ1b zfb3zxeaV1v9zGRiMx+2LTIKeBJrGSinNxxwF9ykCMCCrBzSmt1lkBPJ6zQsUX697jd WGoPDHtb651BzjZsNvqV80ICaUefOEelnST7mJnOBf2L+tRD5HoJ3ReYmu8q+OD+028 0cYi1Se+/g== Date: Wed, 7 Apr 2021 16:23:16 +0200 (CEST) From: jost.schulte@tutanota.com To: Git Message-ID: Subject: Shell completion for branch names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hello guys, I have a question regarding git-completion. I'm using zsh and have added the function .git-completion.bash. That gives me some auto-completion for branch names. What I'm looking for: I have a branch named "feature/issue-123-add-feature" for example. I'd like to type "git switch 123[tab]". Is there some function out there that provides this? Cheers Jost