Skip to content

EmilPopovic/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Personal configuration files, managed with GNU Stow.

Quick Start

Clone the repository:

git clone https://github.com/EmilPopovic/dotfiles.git ~/.dotfiles
cd ~/.dotfiles

Install GNU Stow:

sudo pacman -S stow

Link all dotfiles to your home directory:

cd ~/.dotfiles
stow .

Stow creates symlinks from ~/.dotfiles to your home directory, treating .dotfiles as ~.

Adding New Dotfiles

To add a new dotfile to the repository:

1. Move the file to .dotfiles with its relative structure

Move ~/.zshrc to ~/.dotfiles/.zshrc

mv ~/.zshrc ~/.dotfiles/.zshrc

Move entire directories

mkdir -p ~/.dotfiles/.config/nvim
mv ~/.config/nvim/* ~/.dotfiles/nvim/

2. Create the symlink

cd ~/.dotfiles
stow .

Stow automatically creates symlinks for all files in .dotfiles, mirroring their directory structure back to your home directory.

3. Commit to git

git add .
git commit -m "Add bashrc and nvim config"
git push

Removing Dotfiles

To remove all symlinks without deleting files:

cd ~/.dotfiles
stow -D .

Reapply symlinks:

stow .

About

My personal .dotfiles

Resources

License

Stars

Watchers

Forks