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 52130
- From: Elias Ghafari <eliasghafari@xxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Oliver Kiddle <opk@xxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...)
- Date: Mon, 11 Sep 2023 18:05:01 +0300
- Archived-at: <https://zsh.org/workers/52130>
- In-reply-to: <CAN=4vMoqiFcB_dXZZ9SzX826SC6bT+p5SMdjbva=ah5bGSq-xQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20230309123303.77hztdd63lvxafg4@eliaspc> <22530-1678390068.958410@dJKq.2wyk.2KSv> <20230310100757.zene4lp55wvduvz4@eliaspc> <CAN=4vMoqiFcB_dXZZ9SzX826SC6bT+p5SMdjbva=ah5bGSq-xQ@mail.gmail.com>
On 23/03/10 11:12AM, Roman Perepelitsa wrote:
> You can either replace `--work-tree=~` with `--work-tree ~` or set
> magic_equal_subst. I'd do the former.
Hello again,
This solution worked perfectly until a month or so ago, but then it
stopped working.
I still use the same alias:
config='git --git-dir=$HOME/.local/share/dotfiles --work-tree ~'
I don't know what has changed but $HOME is not expanding and executing
`zsh 2>log` returns this after trying `config diff <Tab>`:
fatal: not a git repository: '$HOME/.local/share/dotfiles'
Which is weird this error happened the last time on git's side saying
that '~/.local/share/dotfiles' is not a git repo when I replaced $HOME
with ~. But as you can see this resulted from Zsh.
Any idea of what has changed to cause this, and if this can be solved ?
Thanks,
Elias.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author