jaywonchung / dotfiles

Per-machine dotfile management with bare git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

Installing dotfiles on a new system

Initialize the dotfile management environment.

git clone --bare git@github.com:jaywonchung/dotfiles.git $HOME/.dotfiles
git --git-dir=$HOME/.dotfiles --work-tree=$HOME checkout master
source .dotmodules/init.sh

Warning. My machines have SSH authentication set up with Github, so cloning with git@github.com:jaywonchung/dotfiles.git works. Others will have to clone with the URL https://github.com/jaywonchung/dotfiles.git.

Then checkout the desired system branch. For example, install the ubuntu-server settings with:

dotfiles checkout ubuntu-server

You may run into errors when checking out a branch due to existing dotfiles in your home directory. Do a quick backup to a separate directory, or just remove them.

Finally, run the installation script.

zsh ~/.dotmodules/install/all.sh

Or just to everything at once. Very secure, obviously.

source <(curl https://raw.githubusercontent.com/jaywonchung/dotfiles/master/install.sh)

Restarting the shell will finish the installation.

Warning. Don't forget to change .gitconfig to reflect your identity (use the git config command).

Modifying configurations

In your home directory, you can do things like:

dotfiles status
dotfiles add .new_dotfile
dotfiles commit -m "A new dotfile that's really damn.. new!"
dotfiles push

About

Per-machine dotfile management with bare git


Languages

Language:Shell 100.0%