Skip to content

a bash script that keeps your config files in a version control system like git, mercurial, ...

License

Notifications You must be signed in to change notification settings

jimmyjjames/cfgkeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfgkeeper

A bash script that keeps your config files in the git version control system. Project homepage

Install

git clone https://github.com/chripo/cfgkeeper.git
cd cfgkeeper

mv cfgkeeper /usr/bin/cfgkeeper

# adjust perms
chown root:root /usr/bin/cfgkeeper

# copy config file
mkdir -p ~/.config && cp cfgkeeper.rc.dist ~/.config/cfgkeeper.rc

# edit your config file
${EDITOR} ~/.config/cfgkeeper.rc

# initialize the repository
cfgkeeper init

Usage

usage: cfgkeeper
a	add FILEs		Add files to the index
c	check [PATH]	Show modified files
co	commit MSG		Record changes to the repository
d	diff FILE		Show changes between backup and system file
	init [REPO]		Initialize the backup directory
l	ls [PATH]		List repository content
pl	pull			Pull changes
p	push [ARGS]		Push changes
re	restore FILEs	Restore files
	rm FILEs		Remove files from the repository
s	status [ARGS]	Show the repository status
	-- ARGS			Forward arguments to git

backupdir: /root/cfgkeeper

Change to backupdir easily

To change into the the backupdir by typing cfgpath on the command line you need to add the following alias into your ~/.bashrc:

alias cfgpath='cd `cfgkeeper printBakdir`'

About

a bash script that keeps your config files in a version control system like git, mercurial, ...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages