store repo config in dotfiles
Project description
store repo config in dotfiles
Install
$ [sudo] pip install repo-config
Features
- store repos config in dotfiles
- exclude unwanted files from commit
- you can symlink dotfiles to a special backup repo
- easy to perform search and commands
How it works
path/to/repo/.config/
- repo config
git@host:owner/repo.git - git remote, required for save/load
~/.config/repo-config/owner/repo/
- dotfiles
Config
$ echo "/.config" >> ~/.gitignore
optional. environment variables:
$ export REPO_CONFIG_DOTFILES=~/.config/repo-config # $XDG_CONFIG_HOME/repo-config by default
$ export REPO_CONFIG_DIR=.config # .config by default
CLI
usage: repo-config command [args]
Available commands:
init create .config/ directory
load load .config/ from dotfiles
save save .config/ to dotfiles
run `repo-config COMMAND --help` for more infos
Examples
$ cd path/to/repo
$ repo-config init
$ ... # generate and edit config/tmp files
$ repo-config save
.config/ saved to ~/.config/repo-config/owner/repo
$ repo-config load
.config/ loaded from ~/.config/repo-config/owner/repo
symlink dotfiles to a special backup repository:
$ ln -fs path/to/backup-repository/repo-config ~/.config/repo-config
save/load multiple repos config
$ find ~/git -type d -name ".config" -maxdepth 3 -execdir repo-config save \;
using execdir package (pypi.org/project/execdir/ or npmjs.com/package/execdir/)
$ execdir run all repo-config save
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
repo-config-2019.2.26.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for repo_config-2019.2.26-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ae1287939e50d215739888abb7d8fd944533b68ff8d954a62e1733f55e12da |
|
MD5 | d2bcc9938a38df0d250b07d6cc99be00 |
|
BLAKE2b-256 | 0157e7b148306aa0081db15b0621eb37306aa59c80f28bad59dd91528357b7dd |