Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

store repo config in dotfiles

Project description

Installation

$ [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_HOME=~/.config/repo-config     # $XDG_CONFIG_HOME/repo-config by default
$ export REPO_CONFIG_DIR=.config                    # .config by default

Scripts usage

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 -maxdepth 1 -exec repo-config save {} \;
$ find ~/git -type d -maxdepth 1 -exec repo-config load {} \;

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for repo-config, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size repo-config-2019.4.13.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page