From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4535 invoked from network); 10 Mar 2023 10:12:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2023 10:12:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1678443168; b=ebaGwEc7DwiO3skoG7r0ID5qOAY328czTYjkqhUi+EPXxdRJy8ES1a/zLCPKcyZV1x6CN/o8Bu LsGR87ad2Pre8XxxDBUqp6Ool6CjJ4lZwgMzFhUR/oZo888ZYuRRxahGDiYUrxt7o01T3Ba+Rz ZG4FXgJrF3r3WTuuYKKCUN0bJh2d5/SMpWx9gQrGWzDXCRiW1rEsJzJSUPzyFZ9Zq/A6fXfuVx Uf/ZcJ+VoQtDY481NjwsqBM3thOO0wTUjWeiJDpCk5c0N6R2+93cT4DE6UO3SZPkg2KBfPAAdr rf6T0z2miy28VxMRREPrDJXbUJFmr9orfa2BHJr9pv7Wrg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1678443168; bh=8hgIBVrHuZIx/TYa2ugDqvZ1jLRzufDg/82xNXNHlko=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=qYw6wcQx/hNArgtKqChQ9Js7HWZWVBxn0A77A5lQTMpxB8wlIwarc2HWrwxxRWxLP9yAYPtj3I imU3ORHJNn2jtEhv295ouuqSSX7c0xi2up6QZaDt2PrQlgRoUHlWrxxblutk9NutR0KHapE455 QcQ/0OgF7y2YtoZAeyf5zYNpvaheKxWy0hzIbI0l+wtR4v6qrnbyUfN1XT1QQteyTNTUDYa4PP HOgE7hIpFXdSjxnWl49AMtqHbPJFQ8DQfnP1LNcAaNAU87rtwCxNabobFXp48C35Z/VRPTMWsx 5Fz9D/bn1U79iK/M/nxqc62P0AMsd/eBhPDnqrDDM6t+WQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zu7x1g1qG/OaporL8gxn2lWpYP9KYatUaOD1oXKT+l8=; b=iWZvJc5yj0wBspRxyHRAkrOhFj ynCr37zJWf3L+PN89lgeLQAYlebT+S+JnBXN83f9coQdLA25MOIwznypDHyo9v6jFK8qzZmPXVRl9 4V6+eRUfeW1VtAAl9YruYQEuXxbuZ0i17YTJXRYUnv+6wboYnMfsbo+I301xitszwfc7U3DUoDeT5 PQj8gqt/x3yEM64gJtCSBDjgqSxb/PromcZKE7k9hoMQUFGMl3Y65sm76wNv/r2VqZkFJQZkzRSPL 30SlC00Wz73l8XxxXXR+yThqRWrYVbjk5LNdPBYzjxoQ9HqoY2a2F08sy5I1lnWZP3uXlVlSoFM06 De4ocenQ==; Received: by zero.zsh.org with local id 1paZk0-000EGB-Nr; Fri, 10 Mar 2023 10:12:48 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f177.google.com) smtp.remote-ip=209.85.208.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f177.google.com ([209.85.208.177]:33719) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1paZjf-000Dvc-96; Fri, 10 Mar 2023 10:12:28 +0000 Received: by mail-lj1-f177.google.com with SMTP id b10so4803481ljr.0; Fri, 10 Mar 2023 02:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678443146; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zu7x1g1qG/OaporL8gxn2lWpYP9KYatUaOD1oXKT+l8=; b=KCLT0D0FRW6WGdepY9GDsaPrkUwPgAHcVY7ZkTHtV8f15N63R9Gs7czaAyXxECjVhi p1JLhAizX+LLPgw61m3GtByDv1h+HmvdV4voGm5AmTpwSkH+z5LGpPM4dyCgfJgkWUr2 gUlngYP5N+dTgsOfU+v2kE8PK7wLCHeV7xssYfnNj6zaxv53/+MmPYsl8Gt09YTxcSnX QSwXTZ9IMYHTnsWzyoWaNaH3GBlPq7Jd/C0PDXyf0aiinKFVYegGiptYpV2hF0P0xJC4 KC0uZjzJf3OBmX6HulDHFuxJJe2iO9I5WgAKHCbOQtoGmnLVE386VZEuGfIgwTRK6S18 ncNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678443146; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zu7x1g1qG/OaporL8gxn2lWpYP9KYatUaOD1oXKT+l8=; b=XnH5LtXrTPPE/nqwlCFeJiYM7rJHJ6cxtikNAXtL1ogFgeSwltO9lIH4xqqbrS6xRG VPegFtnkz2mH0buQbODcuhmoN2NBMl/p+GeJ25fKx5muwuF2FL7BERsc9T/3gQsZyGFg W/f0JbBCE/JA4eo9XB4PpMJbjXyQXbqytSpI6woh2eDoFiRYSeKkc+Z/yfRf+pgGjneO ZJr+4b3kfoDf6aZZtGovU2FmKTF4TkEe8lMvtUXCLhboJcLU8XYngE2PUV756aj1O9HB 1q3c+iNQa36chtpl1lEcaggfgh0lcERhWNeyHcsPIC8jRMfJ6y59To5fBzfTq3qn6tUE h4Lw== X-Gm-Message-State: AO0yUKVUQSmE4dMkJB44hEk8MCxK+7xoaWkuQhfO1e71fa8k6vHq/FQ7 +32ldIaRewJoWyhc/WLM5/tkCBkqrBnExekbuGo= X-Google-Smtp-Source: AK7set9YsOPecUHY6hfUyvSLRaAo43HUSVqfNMuQloIGgWGQwJWkvVsYIvt+4+Fp7y2hr5w0y6QbbzRjC+wejGuDMO4= X-Received: by 2002:a05:651c:1696:b0:295:a9bd:1be0 with SMTP id bd22-20020a05651c169600b00295a9bd1be0mr7824315ljb.6.1678443145960; Fri, 10 Mar 2023 02:12:25 -0800 (PST) MIME-Version: 1.0 References: <20230309123303.77hztdd63lvxafg4@eliaspc> <22530-1678390068.958410@dJKq.2wyk.2KSv> <20230310100757.zene4lp55wvduvz4@eliaspc> In-Reply-To: <20230310100757.zene4lp55wvduvz4@eliaspc> From: Roman Perepelitsa Date: Fri, 10 Mar 2023 11:12:12 +0100 Message-ID: Subject: Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...) To: Elias Ghafari Cc: Oliver Kiddle , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51553 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Fri, Mar 10, 2023 at 11:08=E2=80=AFAM Elias Ghafari wrote: > > On 23/03/09 08:27PM, Oliver Kiddle wrote: > > > > I would suggest you try using ~ instead of $HOME in your alias: > > > > alias config=3D'git --git-dir=3D~/.local/share/dotfiles --work-tree= =3D~' > > > > The tilde in ${~opt_args[--git-dir]}} ensures that tildes are expanded. > > I have actually tried that before and i noticed that the completion > works as if i had put the (e), but the problem is, while the completion > works the command itself doesn't and returns an error saying that > '~/.local/share/dotfiles` isn't a git repo: > fatal: not a git repository: '~/.local/share/dotfiles' You can either replace `--work-tree=3D~` with `--work-tree ~` or set magic_equal_subst. I'd do the former. Roman.