Skip to content

Immo-Be/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles (Managed with GNU Stow)

This repository contains configuration files for tools like nvim, tmux, zsh, etc., managed using GNU Stow.


📦 Structure

Each directory corresponds to a tool or app and contains its config files in the correct relative path.

Example:

dotfiles/
├── nvim/
│   └── .config/
│       └── nvim/
├── tmux/
│   └── .tmux.conf
├── zsh/
│   └── .zshrc

🛠️ Installation

1. Install GNU Stow

macOS (with Homebrew)

brew install stow

Debian/Ubuntu

sudo apt install stow

2. Clone the repo

git clone https://github.com/your-username/dotfiles.git ~/dotfiles
cd ~/dotfiles

3. Stow configs

Use --target=$HOME to ensure correct symlink paths.

stow --target=$HOME nvim
stow --target=$HOME tmux
stow --target=$HOME zsh

🧼 Unstow (Remove Symlinks)

stow -D --target=$HOME nvim

⚠️ Gotchas

  • If you see errors like:

    WARNING! stowing xyz would cause conflicts...
    

    it means a file (like .DS_Store) already exists in the target location. Either:

    • Remove the conflicting file manually
    • Use --adopt to move it into your stow repo:
      stow --target=$HOME --adopt nvim
  • Ignore .DS_Store and similar clutter in .gitignore:

    .DS_Store

🧠 Tips

  • Use one folder per app (nvim, tmux, zsh, git, etc.)
  • Keep file paths relative to $HOME
  • Use --target=$HOME consistently for simplicity
  • Track everything in Git so you can clone and stow on a new machine quickly
  • Write a bootstrap.sh script to restore everything in one go (optional)

✅ Bootstrap Example

#!/bin/bash

set -e

cd ~/dotfiles

for dir in */ ; do
  stow --target=$HOME "$dir"
done

🔒 Dotfiles Philosophy

  • Source-controlled
  • Symlinked for atomic updates
  • Reproducible across machines

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published