-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.myconf.notes
26 lines (20 loc) · 958 Bytes
/
.myconf.notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
When looking around for program to store dotfiles, I came accross a hackernews comment
that suggested setting up a git repo in a directory called .myconf where we can access
the git repo using the alias "config". The following is an exerpt from the hacker news
post:
I use:
git init --bare $HOME/.myconf
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
config config status.showUntrackedFiles no
where my ~/.myconf directory is a git bare repository. Then any file within the home
folder can be versioned with normal commands like:
config status
config add .vimrc
config commit -m "Add vimrc"
config add .config/redshift.conf
config commit -m "Add redshift config"
config push
And so one…
No extra tooling, no symlinks, files are tracked on a version control system, you can
use different branches for different computers, you can replicate you configuration
easily on new installation.