donnemartin / gitsome

A supercharged Git/GitHub command line interface (CLI). An official integration for GitHub and GitHub Enterprise: https://github.com/works-with/category/desktop-tools
Other
7.56k stars 437 forks source link

Autocompletion of git commands cannot be enabled #72

Closed gera2ld closed 8 years ago

gera2ld commented 8 years ago

The doc says I can run gitsome to enable "git commands, branches, tags", but none of them is actually enabled. Do I miss something?

1 2x

donnemartin commented 8 years ago

Hi @gera2ld,

Does this section help?

https://github.com/donnemartin/gitsome#enabling-bash-completions

Curious if your git completions are in one of the 'default' locations gitsome looks for.

gera2ld commented 8 years ago

I've found the problem. Thanks for your reply.

I was using zsh. But it seems that gitsome and xonsh are based on bash, so I have to get a bash complete script and enable it for xonsh.

After adding this to .xonshrc it works:

$BASH_COMPLETIONS = ['/path/to/git-completion.bash']