Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository



On 10 August 2017 at 22:41, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:

>
> Try moving --git-dir and --work-tree to between 'git' and 'add'.
>


% git --git-dir=$HOME/.dotfiles --work-tree=$HOME/ add -f back [Tab]
% git --git-dir=$HOME/.dotfiles --work-tree=$HOME/ add -f backup

It works! Albeit completion is very, very slow - only for this particular
use-case. I'm assuming that this is due to large number of files in $home?
Or can it be a bit speedier?


Messages sorted by: Reverse Date, Date, Thread, Author