Difference between revisions of "Talk:Git"

From ArchWiki
Jump to: navigation, search
(Bash completion)
Line 9: Line 9:
  
 
Maybe note that it's also possible by installing bash-completion? --Xerdomii
 
Maybe note that it's also possible by installing bash-completion? --Xerdomii
 +
:The default {{filename|/etc/bash.bashrc}} (from the bash package) sources {{filename|/etc/bash_completion}} (optionally from the bash-completion package) if it exists.  The {{filename|bash_completion}} script intern sources files in {{filename|/etc/bash_completion.d/}} if they exist.  With Arch's git package a copy of {{filename|/usr/share/git/completion/git-completion.bash}} ends up in the {{filename|/etc/bash_completion.d/}} directory.  So, if you have the bash-completion package installed, completion for git should work automatically as soon as {{filename|/etc/bash.bashrc}} is processed. [[User:James Eder|James Eder]] 13:27, 20 June 2011 (EDT)

Revision as of 17:27, 20 June 2011

Merge with Gitweb

As said, the sections to get git working over ssh, http and the git protocol should in my opinion be placed in this article.

Bash completion

Unless I'm mistaken, bash completion comes with git now so the instructions should be changed to simply:

source /usr/share/git/completion/git-completion.bash

right?

Maybe note that it's also possible by installing bash-completion? --Xerdomii

The default Template:Filename (from the bash package) sources Template:Filename (optionally from the bash-completion package) if it exists. The Template:Filename script intern sources files in Template:Filename if they exist. With Arch's git package a copy of Template:Filename ends up in the Template:Filename directory. So, if you have the bash-completion package installed, completion for git should work automatically as soon as Template:Filename is processed. James Eder 13:27, 20 June 2011 (EDT)