This repository contains my .dotfiles.
Clone the repository to your home
directory.
Execute the included script to create symlinks from your home
directory to the respective files located in this repository.
git clone git@github.com:bauerei/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./makesymlinks.sh
The contained setup script performs the following steps:
- Back up any existing dotfiles in your home directory to
~/.dotfiles_old/
- Create symlinks to the dotfiles in
~/.dotfiles/
in your home directory
Change the files
variable in the setup script to define for which dotfiles/folders containing dotfiles symlinks are created.
########## Variables
# dotfiles directory
dir=~/.dotfiles
# old dotfiles backup directory
olddir=~/.dotfiles_old
# list of files/folders to symlink in homedir
files="bashrc vimrc vim zshrc oh-my-zsh"
If a new dotfile stored in config/ should be included, .gitignore must be updated respectively.
Since ~/.config
will link to config/ after executing the setup script, any app will store its config within config/. To prevent the repository from beeing flooded with configs, only those configs of relevance must be explicitly added to the repository.
The repository is forked from https://github.com/michaeljsmalley/dotfiles. Michael also wrote a great blog post about his dotfiles repository.