Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...)
- X-seq: zsh-workers 51552
- From: Elias Ghafari <eliasghafari@xxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...)
- Date: Fri, 10 Mar 2023 12:07:57 +0200
- Archived-at: <https://zsh.org/workers/51552>
- In-reply-to: <22530-1678390068.958410@dJKq.2wyk.2KSv>
- List-id: <zsh-workers.zsh.org>
- References: <20230309123303.77hztdd63lvxafg4@eliaspc> <22530-1678390068.958410@dJKq.2wyk.2KSv>
On 23/03/09 08:27PM, Oliver Kiddle wrote:
>
> I would suggest you try using ~ instead of $HOME in your alias:
>
> alias config='git --git-dir=~/.local/share/dotfiles --work-tree=~'
>
> 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'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author