zsh-workers
 help / color / mirror / code / Atom feed
From: "Tom M." <boojum@stercus-accidit.com>
To: zsh-workers@zsh.org
Subject: Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
Date: Thu, 10 Aug 2017 11:51:27 +0100	[thread overview]
Message-ID: <CACfAdfZ8xpPTZm2bKvYFoeUWgWDbYHwGRCU8+mLvkAV5YrOnig@mail.gmail.com> (raw)

[-- 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.

             reply	other threads:[~2017-08-10 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-10 10:51 Tom M. [this message]
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.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACfAdfZ8xpPTZm2bKvYFoeUWgWDbYHwGRCU8+mLvkAV5YrOnig@mail.gmail.com \
    --to=boojum@stercus-accidit.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).