zgit is simple git interface.
By using zplug, you can easily install zgit and fzf.
zplug "junegunn/fzf-bin", \
as:command, \
file:"fzf", \
from:gh-r, \
| zplug "b4b4r07/zgit", \
as:command, \
of:bin
Requirements
Desirable
tmux
(forfzf-tmux
)ghq
(to findgit
repositories)
All you have to do is typing zgit
on your command line.
$ zgit
When zgit
command is executed outside git repository, it find the git repository using the ghq
or enhancd
. In order to combine, you should write tool = ghq
or tool = enhancd
to gitconfig
file. For more details, see also next section.
You can write the configuration to ~/.gitconfig
.
[zgit "core"]
default = "status"
tool = "enhancd"
lessopen = "| pygmentize -O style=solarized -f console256 -g %s"
[zgit "command"]
echo = "ctrl-e"
add = "ctrl-a"
add-p = "alt-a"
commit = "ctrl-c"
diff = "ctrl-d"
[zgit "action"]
select-all = "ctrl-z"
Work in progress.