My personal collection of dotfiles. Use at your own risk ;)
The structure of this repository mirrors the structure of the files in your home directory.
.zshrc
is located at the root of the repo, just as it would be at the root of your home directory.- Configuration files that typically live in
~/.config
are placed in the.config
folder in this repo.
-
Clone this repository:
git clone https://github.com/ryanreece/dotfiles.git cd dotfiles
-
Make the install script executable:
chmod +x install_dotfiles.sh
-
Run the installation script:
./install_dotfiles.sh
The installation script will create backups of existing files before creating symlinks.
The installation script creates symlinks from your home directory to the files in this repository. This approach has several benefits:
- Central Management: You can manage all your configuration files in one place (this repo).
- Version Control: Your configurations are version-controlled, allowing you to track changes and revert if necessary.
- Easy Updates: When you update a file in this repo, the change is immediately reflected in your system because of the symlinks.
- Portability: It's easy to set up your preferred environment on a new machine by cloning this repo and running the install script.
To add new dotfiles to be managed by this repo:
- Add the file to this repository, maintaining the correct directory structure.
- Edit the
install_dotfiles.sh
script and add the file path to thedotfiles
array.