zsh-workers
 help / color / mirror / code / Atom feed
* Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
@ 2017-08-10 10:51 Tom M.
  2017-08-10 13:15 ` Tom M.
  0 siblings, 1 reply; 4+ messages in thread
From: Tom M. @ 2017-08-10 10:51 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-10 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 10:51 Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository Tom M.
2017-08-10 13:15 ` Tom M.
2017-08-10 17:14   ` Daniel Shahaf
     [not found]     ` <CACfAdfbiQDH1M32QGxZg21G3xqVFcq5JB+ZSaYbGd5-czNgLbg@mail.gmail.com>
     [not found]       ` <1502401291.1328986.1069732648.63580361@webmail.messagingengine.com>
2017-08-10 21:59         ` Tom M.

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).