dotbot-ghq
Plugin for dotbot to clone remote repositories with ghq.
Installation
- Add
dotbot-ghqas a submodule of your dotfiles repository.
git submodule add https://github.com/klane/dotbot-ghq.git
- Modify your
installscript to enable theghqplugin.
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-ghq -c "${CONFIG}" "${@}"
Usage
The plugin adds two new directives for use with ghq:
ghq: List of repositories to clone withghq getghqfile: List of files containing repositories (one per line) to clone withghq get
For example:
- ghq: - anishathalye/dotbot - motemen/ghq - klane/dotbot-ghq - ghqfile: - repos.txt
Flags for ghq can be passed with the flags keyword. When using this syntax, repositories must be specified with the repo keyword and files with the file keyword. For example:
- ghq: - repo: anishathalye/dotbot flags: [--silent] - repo: motemen/ghq flags: [--update] - repo: klane/dotbot-ghq flags: [-p, --silent, --update] - ghqfile: - file: repos.txt flags: [--silent]