/dotfiles

A KISS bash-script to install dotfiles under version control.

Primary LanguageVim ScriptMIT LicenseMIT

dotfiles

To deploy your dot files on a new machine run:

git clone https://github.com/your_username/dotfiles.git && source ./dotfiles/install-dotfiles.sh

Installation creates symlinks in $HOME to all files in the dotfiles folder except those those listed in excluded_files.txt.

If a dotfile exists prior to the script execuiting, the script will mv it to the old_dotfiles.d directory, the contents of which are gitignored.


To organize dotfiles in folders, create a folder, add the folder name to excluded_files.txt, and create symlinks targeting ./dotfile/targeted-dotfiles.

mkdir DOTFILE_ORGFOLDER && echo "$_" >> excluded_files.txt && cd "$_" 
ln -s ../TARGET_DOTFILE