No description
| .config | ||
| .local/share/fonts | ||
| .zshrc.d | ||
| Pictures/Wallpaper | ||
| scripts | ||
| .gitignore | ||
| .zshrc | ||
| LICENSE | ||
| nohup.out | ||
| README.md | ||
dotfiles
Personal configuration files managed with GNU Stow.
Prerequisites
Install git and stow first:
Ubuntu/Debian
sudo apt install git stow
Arch Linux
sudo pacman -S git stow
macOS
brew install git stow
Installation
git clone ssh://git@quelloffen.ch/shm0rt/dotfiles.git ~/.dotfiles && cd ~/.dotfiles && stow --adopt . && git restore .
To apply or update configs
dotfiles_update
Adding new config files
# 1. Remove current symlinks
cd ~/.dotfiles && stow -D .
# 2. Copy the file structure from home to .dotfiles
# Example for adding ~/.config/nvim/init.vim:
mkdir -p ~/.dotfiles/.config/nvim
cp ~/.config/nvim/init.vim ~/.dotfiles/.config/nvim/
# 3. Remove original file and reapply stow
rm ~/.config/nvim/init.vim
stow .
Step-by-step process:
- Unstow:
stow -D .removes all symlinks - Create structure: Recreate the directory path in
.dotfiles - Copy files: Copy the config file(s) you want to track
- Remove originals: Delete the original files from home directory
- Restow:
stow .creates new symlinks including the new files
Example workflow:
# Adding zsh config
cd ~/.dotfiles && stow -D .
mkdir -p ~/.dotfiles
cp ~/.zshrc ~/.dotfiles/
rm ~/.zshrc
stow .
Notes
- SSH files are kept local and not tracked by git
- Use
stow -D .to remove all symlinks - Backup existing configs before first installation