我使用这种方法跟踪我的点文件:
$HOME/repos/dotfiles
.$HOME/.vim/vimrc
,不是$HOME/repos/dotfiles/vimrc
.git --git-dir=$HOME/repos/dotfiles --work-tree=$HOME ...
管理事情。(实际上,我有一个函数g()
可以在我进入时扩展为上述命令$HOME
,git
否则扩展为。)
一切都很好,除了...
问题: Zsh git 文件名补全不起作用。
例子:
% pwd
/home/brian
% g status ~
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .vim/vimrc
modified: .xmonad/xmonad.hs
no changes added to commit (use …
Run Code Online (Sandbox Code Playgroud)