mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
Merge pull request #430 from mitsu-yuki/master
docs: add description for `ghq.user` and `ghq. completeUser`
This commit is contained in:
commit
650c877e62
13
README.adoc
13
README.adoc
|
|
@ -79,6 +79,19 @@ ghq.root::
|
|||
want to specify "$GOPATH/src" as a secondary root (environment variables
|
||||
should be expanded.)
|
||||
|
||||
ghq.user::
|
||||
In ghq, when specifying only the repository name without slashes as in `ghq get {{Project}}`,
|
||||
ghq attempts to auto-complete the repository owner.
|
||||
By default, the owner used is the value of the environment variable `USER` (or `USERNAME` on Windows).
|
||||
Setting this option allows you to explicitly specify the owner.
|
||||
|
||||
ghq.completeUser::
|
||||
Rather than always using your own username for owner completion,
|
||||
you may want to complete the owner with the same name as the repository.
|
||||
For example, fetch `ruby` as `github.com/ruby/ruby`,
|
||||
`vim` as `github.com/vim/vim`, and `peco` as `github.com/peco/peco`.
|
||||
If you prefer this behavior, set this option to `false` to switch the owner completion method.
|
||||
|
||||
ghq.<url>.vcs::
|
||||
ghq tries to detect the remote repository's VCS backend for non-"github.com"
|
||||
repositories. With this option you can explicitly specify the VCS for the
|
||||
|
|
|
|||
Loading…
Reference in a new issue