The way I usually use this is as follows. Change the lines as appropriate for
your system.
-Install Mercurial:
- $ sudo apt-get install mercurial
+Install Git:
+ $ sudo aptitude install git-core
Change into your home directory and make a clone of the repository:
$ cd
- $ hg clone http://delx.cjb.net/hg/hgdotfiles-generic .hgdotfiles-computername
+ $ git clone http://delx.net.au/git/dotfiles .dotfiles
Make a backup of any existing files:
$ mkdir backup
- $ mv .bash* .ssh .vim* .Xresources .xscreensaver .screenrc .pythonrc.py .inputrc .ssh backup
+ $ mv .bash .bash_profile .bashrc .gitconfig .hgrc .inputrc .pythonrc.py .screenrc .terminfo .vim .vimrc backup/
Symlink the config files into your home directory:
- $ for f in $(ls -A .hgdotfiles-computername); do ln -s .hgdotfiles-computername/$i .; done
- $ rm .hg .hgignore
+ $ ln -sf .dotfiles/{.bash,.bash_profile,.bashrc,.gitconfig,.hgrc,.inputrc,.pythonrc.py,.screenrc,.terminfo,.vim,.vimrc} .
+ $ ln -s .dotfiles/.ssh/config .ssh/
-You're done now. You probably want to move your ssh keys back into ~/.ssh
-(which now links to ~/.hgdotfiles-computername/.ssh), as well as add a few
-machine specific configs to the bash init scripts.
-
-Create files in ~/.bash called environment_local, interactive_local, etc to
-do this. Also, learn how to use Mercurial and use it to version control other
-configure files of yours.
-
-For OSX/BSD you probably want to look at http://delx.net.au/hg/hgdotfiles-macosx
-
-Here are some good Mercurial tutorials:
-http://hgbook.red-bean.com/
-http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart
+You can add machine specific configs to the bash init scripts by creating files
+in ~/.bash called environment_local, interactive_local, functions_local, etc
+Also, learn how to use Git and use it to version control other config files
+of yours.