Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
- X-seq: zsh-workers 41521
- From: "Tom M." <boojum@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
- Date: Thu, 10 Aug 2017 11:51:27 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stercus-accidit.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=G/2NYmS7/iLg7mBktl2SAkrvzbm0ZSyYSk/UZ24BOZ8=; b=kWegLqQciaVj5wh34C50Lom9IYbE8m/awV0EQ7LJZPZKweddB3eFzhehqONYX0IwDM vb6ujxjljW4Bh9MCh0OKkkByzEhbwEEwh1DgjF697idodWfsB8FcN6BdDWAWYEkMYSQZ ZX1e+16hZ5v9TcrdiynR+HoK1ED37DySyDmCs=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
I'm using git bare repo and two aliases to manage my dotfile:
% grep dof .config/zsh/aliases
alias dofenv='GIT_DIR=$HOME/.dotfiles/ GIT_WORK_TREE=$HOME'
alias dof='dofenv git'
With the above, completion works for some git commands but not all:
dof sta [tab]
dof status
dof ad [tab]
dof add [tab]
---- not a git repository
zsh --version
zsh 5.3.1 (x86_64-unknown-linux-gnu)
How can I fix that?
T.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author