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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 8CFFD1F51E for ; Mon, 3 Oct 2022 11:46:03 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; secure) header.d=posteo.de header.i=@posteo.de header.b="S0TCay3X"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbiJCLp6 (ORCPT ); Mon, 3 Oct 2022 07:45:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiJCLp5 (ORCPT ); Mon, 3 Oct 2022 07:45:57 -0400 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE00192AB for ; Mon, 3 Oct 2022 04:45:55 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CF51A240104 for ; Mon, 3 Oct 2022 13:45:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1664797553; bh=+MbFVgg+rA8NKrkHaB46c3aP4/aN3xV+LfuD6iZ4FL8=; h=From:To:Subject:Date:From; b=S0TCay3XitXa/qazeXj0Zyd9SscCivNnVs6TT5uwCw7yPol5qCV+YW371vFEzWX2O 3NtyFhgA5cpGudusH8iGhha8rP+Y/lpVnbdlkq96NwtGQ6OmnELJR3LpidJyBgfJ+1 ZRJnwkeiVfXitiOLm5FUV3a7lM5SOZb7kZICl8UWtqrFaGpDsE1INSVowyBbG3J4u+ BApwycmq7X1oCrgurbR6bBaRzdEmSTM3IPZ1RdDFkox4aeuiXNYFpePUfxkiLxT3Ok 5lWn5+b6vzErmwy3WbdVztLllvYSrbMaEQQbgBrXOdeIat/8ZJF7dy1NKzfP8EtKIC UJ5vIN7vg8Brw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MgzYX5Kh7z6tnN for ; Mon, 3 Oct 2022 13:45:52 +0200 (CEST) From: "Tim Jaacks" To: git@vger.kernel.org Subject: Bash completion for git aliases containing nested subcommands Date: Mon, 03 Oct 2022 11:45:51 +0000 Message-Id: Reply-To: "Tim Jaacks" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hello everyone, I have set up the following alias in my .gitconfig file: [alias] ss =3D stash show Unfortunately bash completion does not work correctly on this alias.=20 When I type "git ss ", I get: $ git ss apply clear drop pop show branch create list push Which is obviously the completion for "git stash" instead of "git stash=20 show". With the original command I get the list of available stashes: $ git stash show stash@{0} stash@{1} Is there a way to get the completion on the alias behave like on the=20 original command? I am on Ubuntu 20.04 and using the distro's default git completions. Kind regards, Tim